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 Hits
public void addStatsResults(StatsResults statsResults)
addStatsResults
in interface Hits
@JSON public String getCollatedSpellCheckResult()
getCollatedSpellCheckResult
in interface Hits
public Map<String,Hits> getGroupedHits()
getGroupedHits
in interface Hits
@JSON public String[] getQuerySuggestions()
getQuerySuggestions
in interface Hits
@JSON public String[] getQueryTerms()
getQueryTerms
in interface Hits
public float getSearchTime()
getSearchTime
in interface Hits
@JSON public String[] getSnippets()
getSnippets
in interface Hits
public Map<String,List<String>> getSpellCheckResults()
getSpellCheckResults
in interface Hits
public Map<String,StatsResults> getStatsResults()
getStatsResults
in interface Hits
public boolean hasGroupedHits()
hasGroupedHits
in interface Hits
public void setCollatedSpellCheckResult(String collatedSpellCheckResult)
setCollatedSpellCheckResult
in interface Hits
public void setQuerySuggestions(String[] querySuggestions)
setQuerySuggestions
in interface Hits
public void setQueryTerms(String[] queryTerms)
setQueryTerms
in interface Hits
public void setSearchTime(float time)
setSearchTime
in interface Hits
public void setSnippets(String[] snippets)
setSnippets
in interface Hits
public void setSpellCheckResults(Map<String,List<String>> spellCheckResults)
setSpellCheckResults
in interface Hits
public String toString()
toString
in class Object