public interface SearchAnswer
The "results" are available via getHits() and the "navigation" via getRelatedTerms() and getCategoryGroups().
This object and all contained objects are not thread-safe. You should not use the results of a search answer concurrently in multiple threads.
Modifier and Type | Method and Description |
---|---|
CategoryGroup |
getCategoryGroup(java.lang.String name)
Get a facet by its id.
|
java.util.Collection<CategoryGroup> |
getCategoryGroups()
Get the facets for the query.
|
java.util.List<Hit> |
getHits()
Get the search results that have matched the query
|
java.util.Iterator<Hit> |
getHitsIterator()
Get an iterator over the hits
|
java.util.Map<java.lang.String,java.lang.String> |
getInfos()
Get various information about the answer.
|
int |
getNHits()
Deprecated.
|
int |
getNMatches()
Deprecated.
|
long |
getNumberOfMatches()
Get the (potentially estimated) total number of hits for this answer.
|
long |
getNumberOfRetrievableHits()
Get the number of hits available to the user.
|
java.util.List<RelatedTerm> |
getRelatedTerms()
Deprecated.
use getCategoryGroup("rt_keyword")
|
java.lang.String |
getSearchContext()
Get the "search context".
|
java.util.List<SliceInfo> |
getSlicesInfo()
Get per slices extra info
|
java.util.List<SpellCheckSuggestion> |
getSpellCheckSuggestions()
Get the spell checking suggestions for the query.
|
int |
getStartIndex()
Get the index of the first search result ("full hit") in the list of all search results.
|
java.util.Map<java.lang.String,java.lang.String> |
getStats()
Get some advanced performance stats infos.
|
java.util.List<java.lang.String> |
getStoppedWords()
Get the query words that have been ignored.
|
java.util.Map<java.lang.String,java.lang.Long> |
getTimes()
Deprecated.
|
java.util.Map<java.lang.String,java.lang.String> getInfos()
java.lang.String getSearchContext()
int getStartIndex()
@Deprecated int getNHits()
getNumberOfRetrievableHits()
long getNumberOfRetrievableHits()
@Deprecated int getNMatches()
getNumberOfMatches()
long getNumberOfMatches()
java.util.Map<java.lang.String,java.lang.String> getStats()
java.util.List<SliceInfo> getSlicesInfo()
@Deprecated java.util.Map<java.lang.String,java.lang.Long> getTimes()
java.util.List<Hit> getHits()
java.util.Iterator<Hit> getHitsIterator()
java.util.List<SpellCheckSuggestion> getSpellCheckSuggestions()
java.util.List<java.lang.String> getStoppedWords()
@Deprecated java.util.List<RelatedTerm> getRelatedTerms()
java.util.Collection<CategoryGroup> getCategoryGroups()
CategoryGroup
CategoryGroup getCategoryGroup(java.lang.String name)
CategoryGroup
Copyright © 2021 Dassault Systèmes, All Rights Reserved.