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).
-
Constructor Summary
ConstructorDescriptionContentSearchResults
(AmetysObjectResolver resolver, Collection<String> ids) Deprecated.Build a local SearchResults. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Gets the response debug map if availableDeprecated.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
Deprecated.Get the maximum score of all the results.Deprecated.Get the result IDs.Deprecated.Get theAmetysObject
resultsDeprecated.Get theIterable
of the search results.long
Deprecated.Get the total number of search results.
-
Constructor Details
-
ContentSearchResults
Deprecated.Build a local SearchResults.- Parameters:
resolver
- The AmetysObject resolver.ids
- the object IDs.
-
-
Method Details
-
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
Deprecated.Description copied from interface:SearchResults
Get theAmetysObject
results- Specified by:
getObjects
in interfaceSearchResults<A extends AmetysObject>
- Returns:
- An
AmetysObjectIterable
on the results.
-
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
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
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
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
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
-