Package org.intermine.api.searchengine
Class KeywordSearchResults
- java.lang.Object
-
- org.intermine.api.searchengine.KeywordSearchResults
-
public class KeywordSearchResults extends java.lang.Object
A class that wraps both a collection of hits and a collection of facets.- Author:
- Alex Kalderimis, arunans23
-
-
Constructor Summary
Constructors Constructor Description KeywordSearchResults(java.util.Collection<KeywordSearchResultContainer> results, java.util.Collection<KeywordSearchFacet> facets, int totalHits)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Collection<KeywordSearchFacet>
getFacets()
java.util.Collection<KeywordSearchResultContainer>
getHits()
int
getTotalHits()
-
-
-
Constructor Detail
-
KeywordSearchResults
public KeywordSearchResults(java.util.Collection<KeywordSearchResultContainer> results, java.util.Collection<KeywordSearchFacet> facets, int totalHits)
- Parameters:
results
- the hitsfacets
- The facetstotalHits
- count of search results
-
-
Method Detail
-
getHits
public java.util.Collection<KeywordSearchResultContainer> getHits()
- Returns:
- the hits
-
getFacets
public java.util.Collection<KeywordSearchFacet> getFacets()
- Returns:
- the facets
-
getTotalHits
public int getTotalHits()
- Returns:
- the totalHits
-
-