|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amazonaws.services.cloudsearchv2.model.TextArrayOptions
public class TextArrayOptions
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.
Constructor Summary | |
---|---|
TextArrayOptions()
|
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
String |
getAnalysisScheme()
The name of an analysis scheme for a text-array 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. |
String |
getSourceFields()
A list of source fields to map to the 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. |
void |
setAnalysisScheme(String analysisScheme)
The name of an analysis scheme for a text-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. |
String |
toString()
Returns a string representation of this object; useful for testing and debugging. |
TextArrayOptions |
withAnalysisScheme(String analysisScheme)
The name of an analysis scheme for a text-array field. |
TextArrayOptions |
withDefaultValue(String defaultValue)
A value to use for the field if the field isn't specified for a document. |
TextArrayOptions |
withHighlightEnabled(Boolean highlightEnabled)
Whether highlights can be returned for the field. |
TextArrayOptions |
withReturnEnabled(Boolean returnEnabled)
Whether the contents of the field can be returned in the search results. |
TextArrayOptions |
withSourceFields(String sourceFields)
A list of source fields to map to the field. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TextArrayOptions()
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 TextArrayOptions 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 getSourceFields()
Constraints:
Pattern: \s*[a-z][a-z0-9_]*\s*(,\s*[a-z][a-z0-9_]*\s*)*
public void setSourceFields(String sourceFields)
Constraints:
Pattern: \s*[a-z][a-z0-9_]*\s*(,\s*[a-z][a-z0-9_]*\s*)*
sourceFields
- A list of source fields to map to the field.public TextArrayOptions withSourceFields(String sourceFields)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Pattern: \s*[a-z][a-z0-9_]*\s*(,\s*[a-z][a-z0-9_]*\s*)*
sourceFields
- A list of source fields to map to the field.
public Boolean isReturnEnabled()
public void setReturnEnabled(Boolean returnEnabled)
returnEnabled
- Whether the contents of the field can be returned in the search
results.public TextArrayOptions 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 isHighlightEnabled()
public void setHighlightEnabled(Boolean highlightEnabled)
highlightEnabled
- Whether highlights can be returned for the field.public TextArrayOptions 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-array
field.
Constraints:
Pattern: [\S]+
text-array
field.public void setAnalysisScheme(String analysisScheme)
text-array
field.
Constraints:
Pattern: [\S]+
analysisScheme
- The name of an analysis scheme for a text-array
field.public TextArrayOptions withAnalysisScheme(String analysisScheme)
text-array
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-array
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 |