public class Suggester extends Object implements Serializable
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 and Description |
|---|
Suggester() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
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 ObjectObject.toString()Copyright © 2014. All rights reserved.