Class DocumentSearchByDateSuggester
- java.lang.Object
-
- org.nuxeo.ecm.platform.suggestbox.service.suggesters.DocumentSearchByDateSuggester
-
- All Implemented Interfaces:
Suggester
@Deprecated public class DocumentSearchByDateSuggester extends Object implements Suggester
Deprecated.since 6.0. This suggester is not used anymore with the new search tab.Simple stateless suggester that parses the input and suggest to search document by date if the input can be interpreted as a date in the user locale.
-
-
Field Summary
Fields Modifier and Type Field Description protected String
iconURL
Deprecated.protected String
label
Deprecated.protected String[]
searchFields
Deprecated.protected String
suggesterId
Deprecated.
-
Constructor Summary
Constructors Constructor Description DocumentSearchByDateSuggester()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
initWithParameters(SuggesterDescriptor descriptor)
Deprecated.Configure the Suggester instance with the parameters from the XML descriptor.List<Suggestion>
suggest(String userInput, SuggestionContext context)
Deprecated.Compute a list of possible user actions or intents given their input and context.
-
-
-
Method Detail
-
suggest
public List<Suggestion> suggest(String userInput, SuggestionContext context) throws SuggestionException
Deprecated.Description copied from interface:Suggester
Compute a list of possible user actions or intents given their input and context.- Specified by:
suggest
in interfaceSuggester
- Parameters:
userInput
- text typed by the usercontext
- user context- Returns:
- generated suggestion for the given input and context
- Throws:
SuggestionException
- if the configuration or context are inconsistent, or a backing service is failing.
-
initWithParameters
public void initWithParameters(SuggesterDescriptor descriptor) throws ComponentInitializationException
Deprecated.Description copied from interface:Suggester
Configure the Suggester instance with the parameters from the XML descriptor.- Specified by:
initWithParameters
in interfaceSuggester
- Parameters:
descriptor
- XMap descriptor with the aggregate configuration information of the component.- Throws:
ComponentInitializationException
-
-