Package org.ametys.cms.search.solr
Class SolrSearchResults<A extends AmetysObject>
java.lang.Object
org.ametys.cms.search.solr.SolrSearchResults<A>
- Type Parameters:
 A- the actual type ofAmetysObjects.
- All Implemented Interfaces:
 SearchResults<A>
Solr implementation of a 
SearchResults.- 
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.apache.solr.common.SolrDocumentListThe Solr documents of the search responseThe facet results.protected AmetysObjectResolverThe AmetysObject resolver.protected org.apache.solr.client.solrj.response.QueryResponseThe solr query response - 
Constructor Summary
ConstructorsConstructorDescriptionSolrSearchResults(org.apache.solr.client.solrj.response.QueryResponse response, AmetysObjectResolver resolver, Map<String, Map<String, Integer>> facetResults) Build a SolrSearchResults object. - 
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. 
- 
Field Details
- 
_response
The solr query response - 
_docList
The Solr documents of the search response - 
_resolver
The AmetysObject resolver. - 
_facetResults
The facet results. 
 - 
 - 
Constructor Details
- 
SolrSearchResults
public SolrSearchResults(org.apache.solr.client.solrj.response.QueryResponse response, AmetysObjectResolver resolver, Map<String, Map<String, Integer>> facetResults) Build a SolrSearchResults object.- Parameters:
 response- the solr search response.resolver- The Ametys object resolver.facetResults- The facet 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.
 
 - 
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
 
 
 -