A
- the actual type of AmetysObject
s.@Deprecated public class ContentSearchResults<A extends AmetysObject> extends Object implements SearchResults<A>
Modifier and Type | Class and Description |
---|---|
(package private) class |
ContentSearchResults.IdSearchResultsIterable
Deprecated.
|
(package private) class |
ContentSearchResults.SearchResultsIteratorWrapper
Deprecated.
|
(package private) class |
ContentSearchResults.SearchResultWrapper
Deprecated.
|
Modifier and Type | Field and Description |
---|---|
private List<String> |
_objectIds
Deprecated.
The list of object ids.
|
private AmetysObjectResolver |
_resolver
Deprecated.
The AmetysObject resolver.
|
Constructor and Description |
---|
ContentSearchResults(AmetysObjectResolver resolver,
Collection<String> ids)
Deprecated.
Build a local SearchResults.
|
Modifier and Type | Method and Description |
---|---|
Map<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 the
AmetysObject results |
SearchResultsIterable<SearchResult<A>> |
getResults()
Deprecated.
Get the
Iterable of the search results. |
long |
getTotalCount()
Deprecated.
Get the total number of search results.
|
private AmetysObjectResolver _resolver
private List<String> _objectIds
public ContentSearchResults(AmetysObjectResolver resolver, Collection<String> ids)
resolver
- The AmetysObject resolver.ids
- the object IDs.public SearchResultsIterable<SearchResult<A>> getResults()
SearchResults
Iterable
of the search results.getResults
in interface SearchResults<A extends AmetysObject>
SearchResultsIterable
on the SearchResult
.public AmetysObjectIterable<A> getObjects()
SearchResults
AmetysObject
resultsgetObjects
in interface SearchResults<A extends AmetysObject>
AmetysObjectIterable
on the results.public Iterable<String> getObjectIds()
SearchResults
getObjectIds
in interface SearchResults<A extends AmetysObject>
Iterable
on the content IDs.public Map<String,Map<String,Integer>> getFacetResults()
SearchResults
getFacetResults
in interface SearchResults<A extends AmetysObject>
public long getTotalCount()
SearchResults
getTotalCount
in interface SearchResults<A extends AmetysObject>
public float getMaxScore()
SearchResults
getMaxScore
in interface SearchResults<A extends AmetysObject>