Class TextArrayOptions
- All Implemented Interfaces:
Serializable
,Cloneable
Options for a field that contains an array of text strings. Present if
IndexFieldType
specifies the field is of type
text-array
. A text-array
field is always
searchable. All options are enabled by default.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
The name of an analysis scheme for atext-array
field.A value to use for the field if the field isn't specified for a document.Whether highlights can be returned for the field.Whether the contents of the field can be returned in the search results.A list of source fields to map to the field.int
hashCode()
Whether highlights can be returned for the field.Whether the contents of the field can be returned in the search results.void
setAnalysisScheme
(String analysisScheme) The name of an analysis scheme for atext-array
field.void
setDefaultValue
(String defaultValue) A value to use for the field if the field isn't specified for a document.void
setHighlightEnabled
(Boolean highlightEnabled) Whether highlights can be returned for the field.void
setReturnEnabled
(Boolean returnEnabled) Whether the contents of the field can be returned in the search results.void
setSourceFields
(String sourceFields) A list of source fields to map to the field.toString()
Returns a string representation of this object; useful for testing and debugging.withAnalysisScheme
(String analysisScheme) The name of an analysis scheme for atext-array
field.withDefaultValue
(String defaultValue) A value to use for the field if the field isn't specified for a document.withHighlightEnabled
(Boolean highlightEnabled) Whether highlights can be returned for the field.withReturnEnabled
(Boolean returnEnabled) Whether the contents of the field can be returned in the search results.withSourceFields
(String sourceFields) A list of source fields to map to the field.
-
Constructor Details
-
TextArrayOptions
public TextArrayOptions()
-
-
Method Details
-
setDefaultValue
A value to use for the field if the field isn't specified for a document.- Parameters:
defaultValue
- A value to use for the field if the field isn't specified for a document.
-
getDefaultValue
A value to use for the field if the field isn't specified for a document.- Returns:
- A value to use for the field if the field isn't specified for a document.
-
withDefaultValue
A value to use for the field if the field isn't specified for a document.- Parameters:
defaultValue
- A value to use for the field if the field isn't specified for a document.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setSourceFields
A list of source fields to map to the field.
- Parameters:
sourceFields
- A list of source fields to map to the field.
-
getSourceFields
A list of source fields to map to the field.
- Returns:
- A list of source fields to map to the field.
-
withSourceFields
A list of source fields to map to the field.
- Parameters:
sourceFields
- A list of source fields to map to the field.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setReturnEnabled
Whether the contents of the field can be returned in the search results.
- Parameters:
returnEnabled
- Whether the contents of the field can be returned in the search results.
-
getReturnEnabled
Whether the contents of the field can be returned in the search results.
- Returns:
- Whether the contents of the field can be returned in the search results.
-
withReturnEnabled
Whether the contents of the field can be returned in the search results.
- Parameters:
returnEnabled
- Whether the contents of the field can be returned in the search results.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
isReturnEnabled
Whether the contents of the field can be returned in the search results.
- Returns:
- Whether the contents of the field can be returned in the search results.
-
setHighlightEnabled
Whether highlights can be returned for the field.
- Parameters:
highlightEnabled
- Whether highlights can be returned for the field.
-
getHighlightEnabled
Whether highlights can be returned for the field.
- Returns:
- Whether highlights can be returned for the field.
-
withHighlightEnabled
Whether highlights can be returned for the field.
- Parameters:
highlightEnabled
- Whether highlights can be returned for the field.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
isHighlightEnabled
Whether highlights can be returned for the field.
- Returns:
- Whether highlights can be returned for the field.
-
setAnalysisScheme
The name of an analysis scheme for a
text-array
field.- Parameters:
analysisScheme
- The name of an analysis scheme for atext-array
field.
-
getAnalysisScheme
The name of an analysis scheme for a
text-array
field.- Returns:
- The name of an analysis scheme for a
text-array
field.
-
withAnalysisScheme
The name of an analysis scheme for a
text-array
field.- Parameters:
analysisScheme
- The name of an analysis scheme for atext-array
field.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-