|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amazonaws.services.cloudsearchv2.model.Suggester
public class Suggester
Configuration information for a search suggester. Each suggester has a
unique name and specifies the text field you want to use for
suggestions. The following options can be configured for a suggester:
FuzzyMatching
,
SortExpression
.
Constructor Summary | |
---|---|
Suggester()
|
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
DocumentSuggesterOptions |
getDocumentSuggesterOptions()
Options for a search suggester. |
String |
getSuggesterName()
A string that represents the name of an index field. |
int |
hashCode()
|
void |
setDocumentSuggesterOptions(DocumentSuggesterOptions documentSuggesterOptions)
Options for a search suggester. |
void |
setSuggesterName(String suggesterName)
A string that represents the name of an index field. |
String |
toString()
Returns a string representation of this object; useful for testing and debugging. |
Suggester |
withDocumentSuggesterOptions(DocumentSuggesterOptions documentSuggesterOptions)
Options for a search suggester. |
Suggester |
withSuggesterName(String suggesterName)
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 Suggester()
Method Detail |
---|
public String getSuggesterName()
_id
.
Constraints:
Length: 1 - 64
Pattern: [a-z][a-z0-9_]*
_id
.public void setSuggesterName(String suggesterName)
_id
.
Constraints:
Length: 1 - 64
Pattern: [a-z][a-z0-9_]*
suggesterName
- 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 Suggester withSuggesterName(String suggesterName)
_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_]*
suggesterName
- 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 DocumentSuggesterOptions getDocumentSuggesterOptions()
public void setDocumentSuggesterOptions(DocumentSuggesterOptions documentSuggesterOptions)
documentSuggesterOptions
- Options for a search suggester.public Suggester withDocumentSuggesterOptions(DocumentSuggesterOptions documentSuggesterOptions)
Returns a reference to this object so that method calls can be chained together.
documentSuggesterOptions
- Options for a search suggester.
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 |