Class TextArrayOptions
- java.lang.Object
-
- com.amazonaws.services.cloudsearchv2.model.TextArrayOptions
-
- All Implemented Interfaces:
Serializable,Cloneable
public class TextArrayOptions extends Object implements Serializable, Cloneable
Options for a field that contains an array of text strings. Present if
IndexFieldTypespecifies the field is of typetext-array. Atext-arrayfield is always searchable. All options are enabled by default.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TextArrayOptions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TextArrayOptionsclone()booleanequals(Object obj)StringgetAnalysisScheme()The name of an analysis scheme for atext-arrayfield.StringgetDefaultValue()A value to use for the field if the field isn't specified for a document.BooleangetHighlightEnabled()Whether highlights can be returned for the field.BooleangetReturnEnabled()Whether the contents of the field can be returned in the search results.StringgetSourceFields()A list of source fields to map to the field.inthashCode()BooleanisHighlightEnabled()Whether highlights can be returned for the field.BooleanisReturnEnabled()Whether the contents of the field can be returned in the search results.voidsetAnalysisScheme(String analysisScheme)The name of an analysis scheme for atext-arrayfield.voidsetDefaultValue(String defaultValue)A value to use for the field if the field isn't specified for a document.voidsetHighlightEnabled(Boolean highlightEnabled)Whether highlights can be returned for the field.voidsetReturnEnabled(Boolean returnEnabled)Whether the contents of the field can be returned in the search results.voidsetSourceFields(String sourceFields)A list of source fields to map to the field.StringtoString()Returns a string representation of this object; useful for testing and debugging.TextArrayOptionswithAnalysisScheme(String analysisScheme)The name of an analysis scheme for atext-arrayfield.TextArrayOptionswithDefaultValue(String defaultValue)A value to use for the field if the field isn't specified for a document.TextArrayOptionswithHighlightEnabled(Boolean highlightEnabled)Whether highlights can be returned for the field.TextArrayOptionswithReturnEnabled(Boolean returnEnabled)Whether the contents of the field can be returned in the search results.TextArrayOptionswithSourceFields(String sourceFields)A list of source fields to map to the field.
-
-
-
Method Detail
-
setDefaultValue
public void setDefaultValue(String defaultValue)
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
public String 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
public TextArrayOptions withDefaultValue(String defaultValue)
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
public void setSourceFields(String sourceFields)
A list of source fields to map to the field.
- Parameters:
sourceFields- A list of source fields to map to the field.
-
getSourceFields
public String getSourceFields()
A list of source fields to map to the field.
- Returns:
- A list of source fields to map to the field.
-
withSourceFields
public TextArrayOptions withSourceFields(String sourceFields)
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
public void setReturnEnabled(Boolean returnEnabled)
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
public Boolean 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
public TextArrayOptions withReturnEnabled(Boolean returnEnabled)
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
public Boolean 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
public void setHighlightEnabled(Boolean highlightEnabled)
Whether highlights can be returned for the field.
- Parameters:
highlightEnabled- Whether highlights can be returned for the field.
-
getHighlightEnabled
public Boolean getHighlightEnabled()
Whether highlights can be returned for the field.
- Returns:
- Whether highlights can be returned for the field.
-
withHighlightEnabled
public TextArrayOptions withHighlightEnabled(Boolean highlightEnabled)
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
public Boolean isHighlightEnabled()
Whether highlights can be returned for the field.
- Returns:
- Whether highlights can be returned for the field.
-
setAnalysisScheme
public void setAnalysisScheme(String analysisScheme)
The name of an analysis scheme for a
text-arrayfield.- Parameters:
analysisScheme- The name of an analysis scheme for atext-arrayfield.
-
getAnalysisScheme
public String getAnalysisScheme()
The name of an analysis scheme for a
text-arrayfield.- Returns:
- The name of an analysis scheme for a
text-arrayfield.
-
withAnalysisScheme
public TextArrayOptions withAnalysisScheme(String analysisScheme)
The name of an analysis scheme for a
text-arrayfield.- Parameters:
analysisScheme- The name of an analysis scheme for atext-arrayfield.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public TextArrayOptions clone()
-
-