public interface SearchResult
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsFacet(String name)
Checks if the specified name is a facet.
|
List<Breadcrumb> |
getBreadcrumbs()
Return bread-crumbs for the current search result state.
|
List<Document> |
getDocuments()
Returns the document that represent the main results.
|
Facet |
getFacet(String name)
Searches for the root of a facet tree which contains the Facet and all FacetValues, for example,
manufacturers(Facet) contains [eizo, ati, ..](FacetValue)
|
Set<String> |
getFacetNames()
Searches for all root facet names.
|
List<Facet> |
getFacets()
Searches for all available facets which contain the whole tree,
manufacturers [eizo, ati, ..], prices [100-499,500-999],categories [online, staged]
|
List<SearchResultGroupCommand> |
getGroupCommands()
Returns the group results.
|
List<String> |
getIdentifiers()
Searches for the identifiers saved in the index, for example, "sony_online", "ati_staged", or "just_name"
|
List<KeywordRedirectValue> |
getKeywordRedirects() |
long |
getNumberOfPages()
Use for pagination
|
long |
getNumberOfResults()
Returns the number of results.
|
int |
getOffset()
Use for pagination
|
int |
getPageSize()
Use for pagination
|
SearchQueryInfo |
getQueryInfo()
Statistics Info about the Search Query - usable for logging
|
List<String> |
getResultCodes()
Searches for item's codes.
|
<T> List<T> |
getResultData(ConverterType converterType)
Returns SOLR results in form of a simple data objects (DTO's)
|
List<PK> |
getResultPKs()
Searches for all result PKs.
|
List<? extends ItemModel> |
getResults()
Searches for all result items.
|
QueryResponse |
getSolrObject()
Searches for the underlying implementation.
|
String |
getSpellingSuggestion()
Get the best suggestion from the spellchecker.
|
boolean |
hasNext()
Use for pagination
|
boolean |
hasPrevious()
Use for pagination
|
int getOffset()
int getPageSize()
boolean hasNext()
boolean hasPrevious()
long getNumberOfPages()
long getNumberOfResults()
List<String> getIdentifiers()
List<PK> getResultPKs() throws FacetSearchException
FacetSearchExceptionList<String> getResultCodes() throws FacetSearchException
FacetSearchExceptionList<? extends ItemModel> getResults() throws FacetSearchException
FacetSearchException<T> List<T> getResultData(ConverterType converterType)
List<Document> getDocuments()
List<SearchResultGroupCommand> getGroupCommands()
Set<String> getFacetNames()
boolean containsFacet(String name)
name - name of the root facetFacet getFacet(String name)
name - name of the facetList<Facet> getFacets()
String getSpellingSuggestion()
List<KeywordRedirectValue> getKeywordRedirects()
List<Breadcrumb> getBreadcrumbs()
BreadcrumbSearchQueryInfo getQueryInfo()
QueryResponse getSolrObject()
Copyright © 2017 SAP SE. All Rights Reserved.