public class SuggestionMatch extends Object implements Serializable
An autocomplete suggestion that matches the query string specified in
a SuggestRequest
.
Constructor and Description |
---|
SuggestionMatch() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getId()
The document ID of the suggested document.
|
Long |
getScore()
The relevance score of a suggested match.
|
String |
getSuggestion()
The string that matches the query string specified in the
SuggestRequest . |
int |
hashCode() |
void |
setId(String id)
The document ID of the suggested document.
|
void |
setScore(Long score)
The relevance score of a suggested match.
|
void |
setSuggestion(String suggestion)
The string that matches the query string specified in the
SuggestRequest . |
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
SuggestionMatch |
withId(String id)
The document ID of the suggested document.
|
SuggestionMatch |
withScore(Long score)
The relevance score of a suggested match.
|
SuggestionMatch |
withSuggestion(String suggestion)
The string that matches the query string specified in the
SuggestRequest . |
public String getSuggestion()
SuggestRequest
.SuggestRequest
.public void setSuggestion(String suggestion)
SuggestRequest
.suggestion
- The string that matches the query string specified in the
SuggestRequest
.public SuggestionMatch withSuggestion(String suggestion)
SuggestRequest
.
Returns a reference to this object so that method calls can be chained together.
suggestion
- The string that matches the query string specified in the
SuggestRequest
.public Long getScore()
public void setScore(Long score)
score
- The relevance score of a suggested match.public SuggestionMatch withScore(Long score)
Returns a reference to this object so that method calls can be chained together.
score
- The relevance score of a suggested match.public String getId()
public void setId(String id)
id
- The document ID of the suggested document.public SuggestionMatch withId(String id)
Returns a reference to this object so that method calls can be chained together.
id
- The document ID of the suggested document.public String toString()
toString
in class Object
Object.toString()
Copyright © 2014. All rights reserved.