public class Suggester extends Object implements Serializable, Cloneable
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 |
---|---|
Suggester |
clone() |
boolean |
equals(Object obj) |
DocumentSuggesterOptions |
getDocumentSuggesterOptions()
Options for a search suggester.
|
String |
getSuggesterName()
Names must begin with a letter and can contain the following
characters: a-z (lowercase), 0-9, and _ (underscore).
|
int |
hashCode() |
void |
setDocumentSuggesterOptions(DocumentSuggesterOptions documentSuggesterOptions)
Options for a search suggester.
|
void |
setSuggesterName(String suggesterName)
Names must begin with a letter and can contain the following
characters: a-z (lowercase), 0-9, and _ (underscore).
|
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)
Names must begin with a letter and can contain the following
characters: a-z (lowercase), 0-9, and _ (underscore).
|
public String getSuggesterName()
Constraints:
Length: 1 - 64
Pattern: [a-z][a-z0-9_]*
public void setSuggesterName(String suggesterName)
Constraints:
Length: 1 - 64
Pattern: [a-z][a-z0-9_]*
suggesterName
- Names must begin with a letter and can contain the following
characters: a-z (lowercase), 0-9, and _ (underscore).public Suggester withSuggesterName(String suggesterName)
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
- Names must begin with a letter and can contain the following
characters: a-z (lowercase), 0-9, and _ (underscore).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()
Copyright © 2015. All rights reserved.