Class SchemaError

  • All Implemented Interfaces:
    java.io.Serializable

    public final class SchemaError
    extends ErrorCode
    Contains the error codes related to the applying the schema to a query or document.
    See Also:
    Serialized Form
    • Field Detail

      • UNKNOWN_FIELD_ERROR

        public static final ErrorCode UNKNOWN_FIELD_ERROR
        SCHEMA-1 A query specifies an unknown field.
      • ILLEGAL_FIELD_VALUE_ERROR

        public static final ErrorCode ILLEGAL_FIELD_VALUE_ERROR
        SCHEMA-2 A query specifies an illegal value for a field
      • ILLEGAL_FIELD_TYPE_ERROR

        public static final ErrorCode ILLEGAL_FIELD_TYPE_ERROR
        SCHEMA-3 A query uses a field with an invalid type for the desired operation
      • ILLEGAL_SORT_FIELD_ERROR

        public static final ErrorCode ILLEGAL_SORT_FIELD_ERROR
        SCHEMA-4 An illegal field was used for sorting
      • UNKNOWN_FACET_ERROR

        public static final ErrorCode UNKNOWN_FACET_ERROR
        SCHEMA-5 A query specifies an unknown facet.
      • UNSUPPORTED_FIELD_TYPE

        public static final ErrorCode UNSUPPORTED_FIELD_TYPE
        SCHEMA-6 An engine does not support a field type.
      • UNINDEXED_FIELD_ERROR

        public static final ErrorCode UNINDEXED_FIELD_ERROR
        SCHEMA-7 A query specifies a field that is not indexed.
      • INCONSISTENT_ERROR

        public static final ErrorCode INCONSISTENT_ERROR
        SCHEMA-8 The schema is inconsistent.
      • FRESHNESS_NOT_SUPPORTED

        public static final ErrorCode FRESHNESS_NOT_SUPPORTED
        SCHEMA-9 Freshness is not supported on the requested field
      • GEOSEARCH_NOT_SUPPORTED

        public static final ErrorCode GEOSEARCH_NOT_SUPPORTED
        SCHEMA-10 Geo Search is not supported on the requested field
      • SCHEMA_NOT_SPECIFIED

        public static final ErrorCode SCHEMA_NOT_SPECIFIED
        SCHEMA-11 Schema is not specified.
      • CONFIG_WARNING

        public static final ErrorCode CONFIG_WARNING
        SCHEMA-12 Schema configuration warning.

        You should correct the schema based on the message logged with this error code.

      • INCOMPATIBLE_INDEX

        public static final ErrorCode INCOMPATIBLE_INDEX
        SCHEMA-13 The schema was modified to be incompatible with an existing index.
      • REAL_TIME_FIELD_ERROR

        public static final ErrorCode REAL_TIME_FIELD_ERROR
        SCHEMA-14 Configuration of real time field contains an error.
      • INVALID_FIELD_NAME

        public static final ErrorCode INVALID_FIELD_NAME
        SCHEMA-15 Invalid field name specified.
      • TERM_ANCHORS_NOT_SUPPORTED

        public static final ErrorCode TERM_ANCHORS_NOT_SUPPORTED
        SCHEMA-16 Term anchors are not enabled/supported for the field requested.
      • DEPRECATED_PROPERTY

        public static final ErrorCode DEPRECATED_PROPERTY
        SCHEMA-17 Deprecated schema property was used.
      • ILLEGAL_PROPERTY_VALUE

        public static final ErrorCode ILLEGAL_PROPERTY_VALUE
        SCHEMA-18 Illegal value for schema property.
      • ILLEGAL_PROPERTY_NAME

        public static final ErrorCode ILLEGAL_PROPERTY_NAME
        SCHEMA-19 Illegal schema property name.
      • ILLEGAL_SCHEMA

        public static final ErrorCode ILLEGAL_SCHEMA
        SCHEMA-20 Schema is not legal.
    • Method Detail

      • formatError

        public java.lang.String formatError​(java.util.Locale locale,
                                            java.lang.String... context)
        Description copied from class: ErrorCode
        Format a contextual error message.
        Overrides:
        formatError in class ErrorCode