Class DomainIndexField


  • public final class DomainIndexField
    extends java.lang.Object
    • Method Detail

      • analysisScheme

        public java.util.Optional<java.lang.String> analysisScheme()
        Returns:
        The analysis scheme you want to use for a `text` field. The analysis scheme specifies the language-specific text processing options that are used during indexing.
      • defaultValue

        public java.util.Optional<java.lang.String> defaultValue()
        Returns:
        The default value for the field. This value is used when no value is specified for the field in the document data.
      • facet

        public java.util.Optional<java.lang.Boolean> facet()
        Returns:
        You can get facet information by enabling this.
      • highlight

        public java.util.Optional<java.lang.Boolean> highlight()
        Returns:
        You can highlight information.
      • name

        public java.lang.String name()
        Returns:
        A unique name for the field. Field names must begin with a letter and be at least 1 and no more than 64 characters long. The allowed characters are: `a`-`z` (lower-case letters), `0`-`9`, and `_` (underscore). The name `score` is reserved and cannot be used as a field name.
      • return_

        public java.util.Optional<java.lang.Boolean> return_()
        Returns:
        You can enable returning the value of all searchable fields.
      • search

        public java.util.Optional<java.lang.Boolean> search()
        Returns:
        You can set whether this index should be searchable or not.
      • sort

        public java.util.Optional<java.lang.Boolean> sort()
        Returns:
        You can enable the property to be sortable.
      • sourceFields

        public java.util.Optional<java.lang.String> sourceFields()
        Returns:
        A comma-separated list of source fields to map to the field. Specifying a source field copies data from one field to another, enabling you to use the same source data in different ways by configuring different options for the fields.
      • type

        public java.lang.String type()
        Returns:
        The field type. Valid values: `date`, `date-array`, `double`, `double-array`, `int`, `int-array`, `literal`, `literal-array`, `text`, `text-array`.