Package org.ametys.cms.search
Interface SearchResults<A extends AmetysObject>
- Type Parameters:
A
- the actual type ofAmetysObject
s.
- All Known Implementing Classes:
ContentSearchResults
,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.float
Get the maximum score of all the results.Get the result IDs.Get theAmetysObject
resultsGet theIterable
of the search results.long
Get the total number of search results.
-
Method Details
-
getResults
Get theIterable
of the search results.- Returns:
- A
SearchResultsIterable
on theSearchResult
.
-
getObjects
Get theAmetysObject
results- Returns:
- An
AmetysObjectIterable
on the results.
-
getObjectIds
Get the result IDs.- Returns:
- An
Iterable
on 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
-