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 ofAmetysObject
s.
- 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) class
ContentSearchResults.IdSearchResultsIterable
Deprecated.(package private) class
ContentSearchResults.SearchResultsIteratorWrapper
Deprecated.(package private) class
ContentSearchResults.SearchResultWrapper
Deprecated.
-
Field Summary
Fields Modifier and Type Field Description private List<String>
_objectIds
Deprecated.The list of object ids.private AmetysObjectResolver
_resolver
Deprecated.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.float
getMaxScore()
Deprecated.Get the maximum score of all the results.Iterable<String>
getObjectIds()
Deprecated.Get the result IDs.AmetysObjectIterable<A>
getObjects()
Deprecated.Get theAmetysObject
resultsSearchResultsIterable<SearchResult<A>>
getResults()
Deprecated.Get theIterable
of the search results.long
getTotalCount()
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:SearchResults
Get theIterable
of the search results.- Specified by:
getResults
in interfaceSearchResults<A extends AmetysObject>
- Returns:
- A
SearchResultsIterable
on theSearchResult
.
-
getObjects
public AmetysObjectIterable<A> getObjects()
Deprecated.Description copied from interface:SearchResults
Get theAmetysObject
results- Specified by:
getObjects
in interfaceSearchResults<A extends AmetysObject>
- Returns:
- An
AmetysObjectIterable
on the results.
-
getObjectIds
public Iterable<String> getObjectIds()
Deprecated.Description copied from interface:SearchResults
Get the result IDs.- Specified by:
getObjectIds
in interfaceSearchResults<A extends AmetysObject>
- Returns:
- An
Iterable
on the content IDs.
-
getFacetResults
public Map<String,Map<String,Integer>> getFacetResults()
Deprecated.Description copied from interface:SearchResults
Get 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:
getFacetResults
in interfaceSearchResults<A extends AmetysObject>
- Returns:
- the facet results.
-
getTotalCount
public long getTotalCount()
Deprecated.Description copied from interface:SearchResults
Get the total number of search results.- Specified by:
getTotalCount
in 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:SearchResults
Get the maximum score of all the results.- Specified by:
getMaxScore
in interfaceSearchResults<A extends AmetysObject>
- Returns:
- the maximum score of all the results.
-
getDebugMap
public Optional<Map<String,Object>> getDebugMap()
Deprecated.Description copied from interface:SearchResults
Gets the response debug map if available- Specified by:
getDebugMap
in interfaceSearchResults<A extends AmetysObject>
- Returns:
- the response debug map if available
-
-