public class SearchResults extends Object
Constructor and Description |
---|
SearchResults() |
Modifier and Type | Method and Description |
---|---|
void |
addHit(String id,
SearchResultHit hit) |
List<SearchResultHit> |
getHits()
Get the list of
SearchResultHit objects. |
Map<String,SearchResultHit> |
getHitsMap() |
SearchResultLimits |
getLimits() |
int |
getReturnedHitsCount() |
SearchResultHit |
getSearchResultHit(String key)
see SearchUtil on how to generate the key
|
int |
getTotalHits() |
int |
getTotalHitsMapSize() |
boolean |
isEmpty() |
void |
setLimits(SearchResultLimits limits) |
void |
setReturnedHitsCount(int returnedHitsCount) |
void |
setTotalHits(int totalHits) |
void |
setTotalHitsMapSize(int totalHitsMapSize) |
String |
toString() |
public SearchResults()
public void addHit(String id, SearchResultHit hit)
public List<SearchResultHit> getHits()
SearchResultHit
objects.SearchResultHit
objects.public SearchResultHit getSearchResultHit(String key)
key
- public Map<String,SearchResultHit> getHitsMap()
public boolean isEmpty()
public SearchResultLimits getLimits()
public void setLimits(SearchResultLimits limits)
public int getTotalHits()
public void setTotalHits(int totalHits)
public int getReturnedHitsCount()
public void setReturnedHitsCount(int returnedHitsCount)
returnedHitsCount
- public int getTotalHitsMapSize()
public void setTotalHitsMapSize(int totalHitsMapSize)
totalHitsMapSize
- Copyright © 2006–2019 The Apache Software Foundation. All rights reserved.