@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class TextOptions extends Object implements Serializable, Cloneable
Options for text field. Present if IndexFieldType
specifies the field is of type text
. A
text
field is always searchable. All options are enabled by default.
Constructor and Description |
---|
TextOptions() |
Modifier and Type | Method and Description |
---|---|
TextOptions |
clone() |
boolean |
equals(Object obj) |
String |
getAnalysisScheme()
The name of an analysis scheme for a
text field. |
String |
getDefaultValue()
A value to use for the field if the field isn't specified for a document.
|
Boolean |
getHighlightEnabled()
Whether highlights can be returned for the field.
|
Boolean |
getReturnEnabled()
Whether the contents of the field can be returned in the search results.
|
Boolean |
getSortEnabled()
Whether the field can be used to sort the search results.
|
String |
getSourceField() |
int |
hashCode() |
Boolean |
isHighlightEnabled()
Whether highlights can be returned for the field.
|
Boolean |
isReturnEnabled()
Whether the contents of the field can be returned in the search results.
|
Boolean |
isSortEnabled()
Whether the field can be used to sort the search results.
|
void |
setAnalysisScheme(String analysisScheme)
The name of an analysis scheme for a
text 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 |
setSortEnabled(Boolean sortEnabled)
Whether the field can be used to sort the search results.
|
void |
setSourceField(String sourceField) |
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
TextOptions |
withAnalysisScheme(String analysisScheme)
The name of an analysis scheme for a
text field. |
TextOptions |
withDefaultValue(String defaultValue)
A value to use for the field if the field isn't specified for a document.
|
TextOptions |
withHighlightEnabled(Boolean highlightEnabled)
Whether highlights can be returned for the field.
|
TextOptions |
withReturnEnabled(Boolean returnEnabled)
Whether the contents of the field can be returned in the search results.
|
TextOptions |
withSortEnabled(Boolean sortEnabled)
Whether the field can be used to sort the search results.
|
TextOptions |
withSourceField(String sourceField) |
public void setDefaultValue(String defaultValue)
defaultValue
- A value to use for the field if the field isn't specified for a document.public String getDefaultValue()
public TextOptions withDefaultValue(String defaultValue)
defaultValue
- A value to use for the field if the field isn't specified for a document.public void setSourceField(String sourceField)
sourceField
- public String getSourceField()
public TextOptions withSourceField(String sourceField)
sourceField
- public void setReturnEnabled(Boolean returnEnabled)
Whether the contents of the field can be returned in the search results.
returnEnabled
- Whether the contents of the field can be returned in the search results.public Boolean getReturnEnabled()
Whether the contents of the field can be returned in the search results.
public TextOptions withReturnEnabled(Boolean returnEnabled)
Whether the contents of the field can be returned in the search results.
returnEnabled
- Whether the contents of the field can be returned in the search results.public Boolean isReturnEnabled()
Whether the contents of the field can be returned in the search results.
public void setSortEnabled(Boolean sortEnabled)
Whether the field can be used to sort the search results.
sortEnabled
- Whether the field can be used to sort the search results.public Boolean getSortEnabled()
Whether the field can be used to sort the search results.
public TextOptions withSortEnabled(Boolean sortEnabled)
Whether the field can be used to sort the search results.
sortEnabled
- Whether the field can be used to sort the search results.public Boolean isSortEnabled()
Whether the field can be used to sort the search results.
public void setHighlightEnabled(Boolean highlightEnabled)
Whether highlights can be returned for the field.
highlightEnabled
- Whether highlights can be returned for the field.public Boolean getHighlightEnabled()
Whether highlights can be returned for the field.
public TextOptions withHighlightEnabled(Boolean highlightEnabled)
Whether highlights can be returned for the field.
highlightEnabled
- Whether highlights can be returned for the field.public Boolean isHighlightEnabled()
Whether highlights can be returned for the field.
public void setAnalysisScheme(String analysisScheme)
The name of an analysis scheme for a text
field.
analysisScheme
- The name of an analysis scheme for a text
field.public String getAnalysisScheme()
The name of an analysis scheme for a text
field.
text
field.public TextOptions withAnalysisScheme(String analysisScheme)
The name of an analysis scheme for a text
field.
analysisScheme
- The name of an analysis scheme for a text
field.public String toString()
toString
in class Object
Object.toString()
public TextOptions clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.