public interface SuggestionService
This services aims to build more natural user interfaces for search and navigation by trying to interpret and make explicit possible user intents.
Possible usages of this service:
Modifier and Type | Method and Description |
---|---|
List<Suggestion> |
suggest(String userInput,
SuggestionContext context)
Call the suggesters registered for the given suggestion point mentioned in the context and aggregate the results.
|
List<Suggestion> |
suggest(String searchKeywords,
SuggestionContext suggestionContext,
String suggester)
Call a single suggester registered under the provided name.
|
List<Suggestion> suggest(String userInput, SuggestionContext context) throws SuggestionException
userInput
- text typed by the usercontext
- user context (with suggestPoint name and more)SuggestionException
List<Suggestion> suggest(String searchKeywords, SuggestionContext suggestionContext, String suggester) throws SuggestionException
userInput
- text typed by the usersuggestionContext
- user context (with suggestPoint name and more)suggester
- the registration name of the suggester to useSuggestionException
Copyright © 2018 Nuxeo. All rights reserved.