Interface FacetSearchContext
-
- All Known Implementing Classes:
DefaultFacetSearchContext
public interface FacetSearchContextThis interface represents a context valid for the duration of a search.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classFacetSearchContext.Status
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Map<java.lang.String,java.lang.Object>getAttributes()Returns aMapinstance that can be used to store attributes.java.util.List<IndexedTypeSort>getAvailableNamedSorts()Return list of available named sorts.FacetSearchConfiggetFacetSearchConfig()Returns the facet search configuration.java.util.List<java.lang.Exception>getFailureExceptions()Returns all failure causing exceptions for thisFacetSearchContext.IndexedTypegetIndexedType()Returns the indexed type.IndexedTypeSortgetNamedSort()Return current named sort.java.util.Collection<CatalogVersionModel>getParentSessionCatalogVersions()Returns the parent session catalog versions (the catalog versions that are in the session when this context is created).java.util.Map<java.lang.String,java.lang.String>getSearchHints()Returns a mutableMapthat can be used to store search hints.SearchQuerygetSearchQuery()Returns the search query.SearchResultgetSearchResult()Returns the search result.FacetSearchContext.StatusgetStatus()Returns the current status for thisFacetSearchContextvoidsetNamedSort(IndexedTypeSort namedSort)Sets current named sortIndexedTypeSort.voidsetSearchResult(SearchResult searchResult)Sets the search result.
-
-
-
Method Detail
-
getFacetSearchConfig
FacetSearchConfig getFacetSearchConfig()
Returns the facet search configuration.- Returns:
- the facet search configuration
-
getIndexedType
IndexedType getIndexedType()
Returns the indexed type.- Returns:
- the indexed type
-
getSearchQuery
SearchQuery getSearchQuery()
Returns the search query.- Returns:
- the search query
-
getSearchResult
SearchResult getSearchResult()
Returns the search result.- Returns:
- the search result
-
setSearchResult
void setSearchResult(SearchResult searchResult)
Sets the search result.
-
getParentSessionCatalogVersions
java.util.Collection<CatalogVersionModel> getParentSessionCatalogVersions()
Returns the parent session catalog versions (the catalog versions that are in the session when this context is created).- Returns:
- the parent session catalog versions
-
getSearchHints
java.util.Map<java.lang.String,java.lang.String> getSearchHints()
Returns a mutableMapthat can be used to store search hints.- Returns:
- the map containing the search hints
-
getStatus
FacetSearchContext.Status getStatus()
Returns the current status for thisFacetSearchContext- Returns:
- the current status
-
getFailureExceptions
java.util.List<java.lang.Exception> getFailureExceptions()
Returns all failure causing exceptions for thisFacetSearchContext.
-
getAttributes
java.util.Map<java.lang.String,java.lang.Object> getAttributes()
Returns aMapinstance that can be used to store attributes. The attributes are only valid for the duration of the search process.- Returns:
- the map containing the attributes
-
getAvailableNamedSorts
java.util.List<IndexedTypeSort> getAvailableNamedSorts()
Return list of available named sorts.- Returns:
- List of
IndexedTypeSort
-
getNamedSort
IndexedTypeSort getNamedSort()
Return current named sort.- Returns:
- Current named sort
IndexedTypeSort
-
setNamedSort
void setNamedSort(IndexedTypeSort namedSort)
Sets current named sortIndexedTypeSort.
-
-