public class SearchResults extends Object
Modifier and Type | Field and Description |
---|---|
private Map<String,SearchResultHit> |
hits |
private SearchResultLimits |
limits |
private int |
returnedHitsCount |
private int |
totalHits |
private int |
totalHitsMapSize |
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() |
private Map<String,SearchResultHit> hits
private int totalHits
private int totalHitsMapSize
private int returnedHitsCount
private SearchResultLimits limits
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–2022 The Apache Software Foundation. All rights reserved.