public interface SearchProvider
| Modifier and Type | Interface and Description |
|---|---|
static interface |
SearchProvider.SupportsSuggestion |
| Modifier and Type | Method and Description |
|---|---|
String |
getName() |
boolean |
isEnabled()
Checks whether this provider is enabled.
|
SearchResponse |
search(SearchCriteria criteria,
RenderContext context)
Performs a search using the SearchCriteria object, which is created with using the
Jahia Search Tags or can also be created in Java classes by using the
SearchCriteriaFactory.
|
Suggestion |
suggest(String originalQuery,
RenderContext context,
int maxTermsToSuggest)
Deprecated.
Use SupportsSuggestion interface instead
|
SearchResponse search(SearchCriteria criteria, RenderContext context)
criteria - the passed SearchCriteria object, which includes all search criteriacontext - context object, containing information about current user, locale etc.Suggestion suggest(String originalQuery, RenderContext context, int maxTermsToSuggest)
null is returned.originalQuery - original query stringcontext - context object, containing information about current site, workspace, locale etc.maxTermsToSuggest - the maximum number of terms to suggestnull
is returned.String getName()
boolean isEnabled()
true if the provider is enabled, false otherwise.Copyright © 2004–2020 Jahia Solutions Group SA. All rights reserved.