public class DocumentLookupSuggester extends Object implements Suggester
Modifier and Type | Field and Description |
---|---|
protected SuggesterDescriptor |
descriptor |
protected String |
providerName |
Constructor and Description |
---|
DocumentLookupSuggester() |
Modifier and Type | Method and Description |
---|---|
void |
initWithParameters(SuggesterDescriptor descriptor)
Configure the Suggester instance with the parameters from the XML descriptor.
|
List<Suggestion> |
suggest(String userInput,
SuggestionContext context)
Compute a list of possible user actions or intents given their input and context.
|
protected String providerName
protected SuggesterDescriptor descriptor
public DocumentLookupSuggester()
public void initWithParameters(SuggesterDescriptor descriptor)
Suggester
initWithParameters
in interface Suggester
descriptor
- XMap descriptor with the aggregate configuration information of the component.public List<Suggestion> suggest(String userInput, SuggestionContext context) throws SuggestionException
Suggester
suggest
in interface Suggester
userInput
- text typed by the usercontext
- user contextSuggestionException
- if the configuration or context are inconsistent, or a backing service is failing.Copyright © 2015 Nuxeo SA. All rights reserved.