Package org.ametys.web.frontoffice
Class FrontOfficeSearcherFactory.FrontOfficeSolrSearchResults<A extends AmetysObject>
java.lang.Object
org.ametys.web.frontoffice.FrontOfficeSearcherFactory.FrontOfficeSolrSearchResults<A>
- Type Parameters:
 A- the actual type ofAmetysObjects.
- All Implemented Interfaces:
 SearchResults<A>
- Enclosing class:
 - FrontOfficeSearcherFactory
 
public static class FrontOfficeSearcherFactory.FrontOfficeSolrSearchResults<A extends AmetysObject>
extends Object
implements SearchResults<A>
Wrapper of a 
SolrSearchResults for AbstractSearchGenerator (add the possibility to add facet.queries)- 
Constructor Summary
ConstructorsConstructorDescriptionFrontOfficeSolrSearchResults(SearchResults<A> searchResults, org.apache.solr.client.solrj.response.QueryResponse response, Map<String, Integer> facetQueryResults) Build a FrontOfficeSolrSearchResults object. - 
Method Summary
Modifier and TypeMethodDescriptionGets the response debug map if availableGets the facet.query results as a MapGet 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. 
- 
Constructor Details
- 
FrontOfficeSolrSearchResults
public FrontOfficeSolrSearchResults(SearchResults<A> searchResults, org.apache.solr.client.solrj.response.QueryResponse response, Map<String, Integer> facetQueryResults) Build a FrontOfficeSolrSearchResults object.- Parameters:
 searchResults- The wrappedSearchResultsobjectresponse- the solr search response.facetQueryResults- The facet.query results.
 
 - 
 - 
Method Details
- 
getResults
Description copied from interface:SearchResultsGet theIterableof the search results.- Specified by:
 getResultsin interfaceSearchResults<A extends AmetysObject>- Returns:
 - A 
SearchResultsIterableon theSearchResult. 
 - 
getObjects
Description copied from interface:SearchResultsGet theAmetysObjectresults- Specified by:
 getObjectsin interfaceSearchResults<A extends AmetysObject>- Returns:
 - An 
AmetysObjectIterableon the results. 
 - 
getObjectIds
Description copied from interface:SearchResultsGet the result IDs.- Specified by:
 getObjectIdsin interfaceSearchResults<A extends AmetysObject>- Returns:
 - An 
Iterableon the content IDs. 
 - 
getFacetResults
Description copied from interface:SearchResultsGet the facet results as a Map, indexed by faceted criterion ID.
The Map values are represented by a Map of value -> result count.- Specified by:
 getFacetResultsin interfaceSearchResults<A extends AmetysObject>- Returns:
 - the facet results.
 
 - 
getFacetQueryResults
Gets the facet.query results as a Map- Returns:
 - the facet.query results
 
 - 
getTotalCount
Description copied from interface:SearchResultsGet the total number of search results.- Specified by:
 getTotalCountin interfaceSearchResults<A extends AmetysObject>- Returns:
 - the total number of results matching the search (whatever the limit): the iterable may contain less objects than this count.
 
 - 
getMaxScore
Description copied from interface:SearchResultsGet the maximum score of all the results.- Specified by:
 getMaxScorein interfaceSearchResults<A extends AmetysObject>- Returns:
 - the maximum score of all the results.
 
 - 
getDebugMap
Description copied from interface:SearchResultsGets the response debug map if available- Specified by:
 getDebugMapin interfaceSearchResults<A extends AmetysObject>- Returns:
 - the response debug map if available
 
 
 -