|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amazonaws.services.cloudsearchv2.model.TextOptions
public class TextOptions
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 Summary | |
---|---|
TextOptions()
|
Method Summary | |
---|---|
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()
A string that represents the name of an index field. |
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)
A string that represents the name of an index field. |
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)
A string that represents the name of an index field. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TextOptions()
Method Detail |
---|
public String getDefaultValue()
Constraints:
Length: 0 - 1024
public void setDefaultValue(String defaultValue)
Constraints:
Length: 0 - 1024
defaultValue
- A value to use for the field if the field isn't specified for a
document.public TextOptions withDefaultValue(String defaultValue)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 0 - 1024
defaultValue
- A value to use for the field if the field isn't specified for a
document.
public String getSourceField()
_id
.
Constraints:
Length: 1 - 64
Pattern: [a-z][a-z0-9_]*
_id
.public void setSourceField(String sourceField)
_id
.
Constraints:
Length: 1 - 64
Pattern: [a-z][a-z0-9_]*
sourceField
- A string that represents the name of an index field. Field names begin
with a letter and can contain the following characters: a-z
(lowercase), 0-9, and _ (underscore). The name "score" is reserved and
cannot be used as a field name. To reference a document's ID, you can
use the name _id
.public TextOptions withSourceField(String sourceField)
_id
.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 64
Pattern: [a-z][a-z0-9_]*
sourceField
- A string that represents the name of an index field. Field names begin
with a letter and can contain the following characters: a-z
(lowercase), 0-9, and _ (underscore). The name "score" is reserved and
cannot be used as a field name. To reference a document's ID, you can
use the name _id
.
public Boolean isReturnEnabled()
public void setReturnEnabled(Boolean returnEnabled)
returnEnabled
- Whether the contents of the field can be returned in the search
results.public TextOptions withReturnEnabled(Boolean returnEnabled)
Returns a reference to this object so that method calls can be chained together.
returnEnabled
- Whether the contents of the field can be returned in the search
results.
public Boolean getReturnEnabled()
public Boolean isSortEnabled()
public void setSortEnabled(Boolean sortEnabled)
sortEnabled
- Whether the field can be used to sort the search results.public TextOptions withSortEnabled(Boolean sortEnabled)
Returns a reference to this object so that method calls can be chained together.
sortEnabled
- Whether the field can be used to sort the search results.
public Boolean getSortEnabled()
public Boolean isHighlightEnabled()
public void setHighlightEnabled(Boolean highlightEnabled)
highlightEnabled
- Whether highlights can be returned for the field.public TextOptions withHighlightEnabled(Boolean highlightEnabled)
Returns a reference to this object so that method calls can be chained together.
highlightEnabled
- Whether highlights can be returned for the field.
public Boolean getHighlightEnabled()
public String getAnalysisScheme()
text
field.
Constraints:
Pattern: [\S]+
text
field.public void setAnalysisScheme(String analysisScheme)
text
field.
Constraints:
Pattern: [\S]+
analysisScheme
- The name of an analysis scheme for a text
field.public TextOptions withAnalysisScheme(String analysisScheme)
text
field.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Pattern: [\S]+
analysisScheme
- The name of an analysis scheme for a text
field.
public String toString()
toString
in class Object
Object.toString()
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |