public class SolrSuggesterServiceImpl extends Object implements SuggesterService
Modifier and Type | Field and Description |
---|---|
static String |
SUGGEST_HANDLER |
Constructor and Description |
---|
SolrSuggesterServiceImpl() |
Modifier and Type | Method and Description |
---|---|
SuggesterResult |
getSuggestions(SuggesterParameters suggesterParameters)
Get suggestions for the specified term
SuggesterParameters.term |
boolean |
isEnabled()
Whether the Suggester is enabled (refer to 'solr.suggester.enabled' repository property) or not
|
void |
setEnabled(boolean isEnabled) |
void |
setSolrQueryHTTPClient(SolrQueryHTTPClient solrQueryHTTPClient) |
public static final String SUGGEST_HANDLER
public void setEnabled(boolean isEnabled)
public boolean isEnabled()
SuggesterService
isEnabled
in interface SuggesterService
public void setSolrQueryHTTPClient(SolrQueryHTTPClient solrQueryHTTPClient)
solrQueryHTTPClient
- the solrQueryHTTPClient to setpublic SuggesterResult getSuggestions(SuggesterParameters suggesterParameters)
SuggesterService
SuggesterParameters.term
getSuggestions
in interface SuggesterService
suggesterParameters
- the parameters to useCopyright © 2005–2017 Alfresco Software. All rights reserved.