Package org.ametys.cms.search
Interface SearchResults<A extends AmetysObject>
- Type Parameters:
A- the actual type ofAmetysObjects.
- All Known Implementing Classes:
FrontOfficeSearcherFactory.FrontOfficeSolrSearchResults,SolrSearchResults
public interface SearchResults<A extends AmetysObject>
Interface representing the results of a search.
-
Method Summary
Modifier and TypeMethodDescriptionGets the response debug map if availableGet the facet results as a Map, indexed by faceted criterion ID.
The Map values are represented by a Map of value -> result count.floatGet the maximum score of all the results.Get the result IDs.Get theAmetysObjectresultsGet theIterableof the search results.longGet the total number of search results.
-
Method Details
-
getResults
Get theIterableof the search results.- Returns:
- A
SearchResultsIterableon theSearchResult.
-
getObjects
Get theAmetysObjectresults- Returns:
- An
AmetysObjectIterableon the results.
-
getObjectIds
Get the result IDs.- Returns:
- An
Iterableon the content IDs.
-
getFacetResults
Get the facet results as a Map, indexed by faceted criterion ID.
The Map values are represented by a Map of value -> result count.- Returns:
- the facet results.
-
getTotalCount
long getTotalCount()Get the total number of search results.- Returns:
- the total number of results matching the search (whatever the limit): the iterable may contain less objects than this count.
-
getMaxScore
float getMaxScore()Get the maximum score of all the results.- Returns:
- the maximum score of all the results.
-
getDebugMap
Gets the response debug map if available- Returns:
- the response debug map if available
-