Interface SearchService
- All Known Implementing Classes:
ClausesLimitAwareSearchService
,SearchServiceImpl
,SearchServiceInternalImpl
public interface SearchService
Provides access to OpenSearch for authoring indexes
- Author:
- joseross
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The default maximum number of terms for fuzzy queries expands to. -
Method Summary
Modifier and TypeMethodDescriptiondefault SearchResult
search
(String siteId, SearchParams params) Performs a search operation for a given sitesearch
(String siteId, SearchParams params, int maxExpansions) Performs a search operation for a given site
-
Field Details
-
DEFAULT_MAX_EXPANSIONS
static final int DEFAULT_MAX_EXPANSIONSThe default maximum number of terms for fuzzy queries expands to.- See Also:
-
-
Method Details
-
search
SearchResult search(String siteId, SearchParams params, int maxExpansions) throws ServiceLayerException Performs a search operation for a given site- Parameters:
siteId
- the id of the siteparams
- the parameters for the searchmaxExpansions
- Specifies the maximum number of terms for fuzzy queries expands to.- Returns:
- the search results
- Throws:
ServiceLayerException
- if there is any error executing the search in OpenSearch
-
search
Performs a search operation for a given site- Parameters:
siteId
- the id of the siteparams
- the parameters for the search- Returns:
- the search results
- Throws:
ServiceLayerException
- if there is any error executing the search in OpenSearch
-