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 |
---|---|
Object |
handleSelection(Suggestion suggestion,
SuggestionContext context)
Call the Content Automation Operation chain matching the suggestion
selected by the user.
|
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
Object handleSelection(Suggestion suggestion, SuggestionContext context) throws SuggestionHandlingException
suggestion
- the selected suggestion to executecontext
- the suggestion context that is also passed to as Content
Automation context.SuggestionHandlingException
Copyright © 2014 Nuxeo SA. All rights reserved.