Package org.ametys.cms.search.cocoon
Class ContentSearchResults<A extends AmetysObject>
- java.lang.Object
-
- org.ametys.cms.search.cocoon.ContentSearchResults<A>
-
- Type Parameters:
A- the actual type ofAmetysObjects.
- All Implemented Interfaces:
SearchResults<A>
@Deprecated public class ContentSearchResults<A extends AmetysObject> extends Object implements SearchResults<A>
Deprecated.Search results based on a list of AmetysObject IDs (lazy resolved).
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) classContentSearchResults.IdSearchResultsIterableDeprecated.(package private) classContentSearchResults.SearchResultsIteratorWrapperDeprecated.(package private) classContentSearchResults.SearchResultWrapperDeprecated.
-
Field Summary
Fields Modifier and Type Field Description private List<String>_objectIdsDeprecated.The list of object ids.private AmetysObjectResolver_resolverDeprecated.The AmetysObject resolver.
-
Constructor Summary
Constructors Constructor Description ContentSearchResults(AmetysObjectResolver resolver, Collection<String> ids)Deprecated.Build a local SearchResults.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Optional<Map<String,Object>>getDebugMap()Deprecated.Gets the response debug map if availableMap<String,Map<String,Integer>>getFacetResults()Deprecated.Get the facet results as a Map, indexed by faceted criterion ID.
The Map values are represented by a Map of value -> result count.floatgetMaxScore()Deprecated.Get the maximum score of all the results.Iterable<String>getObjectIds()Deprecated.Get the result IDs.AmetysObjectIterable<A>getObjects()Deprecated.Get theAmetysObjectresultsSearchResultsIterable<SearchResult<A>>getResults()Deprecated.Get theIterableof the search results.longgetTotalCount()Deprecated.Get the total number of search results.
-
-
-
Field Detail
-
_resolver
private AmetysObjectResolver _resolver
Deprecated.The AmetysObject resolver.
-
_objectIds
private List<String> _objectIds
Deprecated.The list of object ids.
-
-
Constructor Detail
-
ContentSearchResults
public ContentSearchResults(AmetysObjectResolver resolver, Collection<String> ids)
Deprecated.Build a local SearchResults.- Parameters:
resolver- The AmetysObject resolver.ids- the object IDs.
-
-
Method Detail
-
getResults
public SearchResultsIterable<SearchResult<A>> getResults()
Deprecated.Description copied from interface:SearchResultsGet theIterableof the search results.- Specified by:
getResultsin interfaceSearchResults<A extends AmetysObject>- Returns:
- A
SearchResultsIterableon theSearchResult.
-
getObjects
public AmetysObjectIterable<A> getObjects()
Deprecated.Description copied from interface:SearchResultsGet theAmetysObjectresults- Specified by:
getObjectsin interfaceSearchResults<A extends AmetysObject>- Returns:
- An
AmetysObjectIterableon the results.
-
getObjectIds
public Iterable<String> getObjectIds()
Deprecated.Description copied from interface:SearchResultsGet the result IDs.- Specified by:
getObjectIdsin interfaceSearchResults<A extends AmetysObject>- Returns:
- An
Iterableon the content IDs.
-
getFacetResults
public Map<String,Map<String,Integer>> getFacetResults()
Deprecated.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
public long getTotalCount()
Deprecated.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
public float getMaxScore()
Deprecated.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
public Optional<Map<String,Object>> getDebugMap()
Deprecated.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
-
-