public class HitsImpl extends Object implements Hits
| Constructor and Description |
|---|
HitsImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
addGroupedHits(String groupValue,
Hits hits) |
void |
addStatsResults(StatsResults statsResults) |
void |
copy(Hits hits) |
Document |
doc(int n) |
String |
getCollatedSpellCheckResult() |
Document[] |
getDocs() |
Map<String,Hits> |
getGroupedHits() |
int |
getLength() |
Query |
getQuery() |
String[] |
getQuerySuggestions() |
String[] |
getQueryTerms() |
float[] |
getScores() |
float |
getSearchTime() |
String[] |
getSnippets() |
Map<String,List<String>> |
getSpellCheckResults() |
long |
getStart() |
Map<String,StatsResults> |
getStatsResults() |
boolean |
hasGroupedHits() |
float |
score(int n) |
void |
setCollatedSpellCheckResult(String collatedSpellCheckResult) |
void |
setDocs(Document[] docs) |
void |
setLength(int length) |
void |
setQuery(Query query) |
void |
setQuerySuggestions(String[] querySuggestions) |
void |
setQueryTerms(String[] queryTerms) |
void |
setScores(float[] scores) |
void |
setSearchTime(float time) |
void |
setSnippets(String[] snippets) |
void |
setSpellCheckResults(Map<String,List<String>> spellCheckResults) |
void |
setStart(long start) |
String |
snippet(int n) |
List<Document> |
toList() |
String |
toString() |
public void addGroupedHits(String groupValue,
Hits hits)
addGroupedHits in interface Hitspublic void addStatsResults(StatsResults statsResults)
addStatsResults in interface Hits@JSON public String getCollatedSpellCheckResult()
getCollatedSpellCheckResult in interface Hitspublic Map<String,Hits> getGroupedHits()
getGroupedHits in interface Hits@JSON public String[] getQuerySuggestions()
getQuerySuggestions in interface Hits@JSON public String[] getQueryTerms()
getQueryTerms in interface Hitspublic float getSearchTime()
getSearchTime in interface Hits@JSON public String[] getSnippets()
getSnippets in interface Hitspublic Map<String,List<String>> getSpellCheckResults()
getSpellCheckResults in interface Hitspublic Map<String,StatsResults> getStatsResults()
getStatsResults in interface Hitspublic boolean hasGroupedHits()
hasGroupedHits in interface Hitspublic void setCollatedSpellCheckResult(String collatedSpellCheckResult)
setCollatedSpellCheckResult in interface Hitspublic void setQuerySuggestions(String[] querySuggestions)
setQuerySuggestions in interface Hitspublic void setQueryTerms(String[] queryTerms)
setQueryTerms in interface Hitspublic void setSearchTime(float time)
setSearchTime in interface Hitspublic void setSnippets(String[] snippets)
setSnippets in interface Hitspublic void setSpellCheckResults(Map<String,List<String>> spellCheckResults)
setSpellCheckResults in interface Hitspublic String toString()
toString in class Object