Class DocumentSearchByPropertySuggester
- java.lang.Object
-
- org.nuxeo.ecm.platform.suggestbox.service.suggesters.DocumentSearchByPropertySuggester
-
- All Implemented Interfaces:
Suggester
@Deprecated public class DocumentSearchByPropertySuggester extends Object implements Suggester
Deprecated.since 6.0. This suggester is not used anymore with the new search tab.Simple stateless document search suggester that propose to use the user input for searching a specific field.
-
-
Field Summary
Fields Modifier and Type Field Description protected StringdescriptionDeprecated.protected booleandisabledDeprecated.protected StringiconURLDeprecated.protected StringlabelDeprecated.protected StringsearchFieldDeprecated.protected String[]searchFieldsDeprecated.protected StringsuggesterIdDeprecated.
-
Constructor Summary
Constructors Constructor Description DocumentSearchByPropertySuggester()Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidinitWithParameters(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.
-
-
-
Field Detail
-
searchField
protected String searchField
Deprecated.
-
suggesterId
protected String suggesterId
Deprecated.
-
searchFields
protected String[] searchFields
Deprecated.- Since:
- 5.8
-
description
protected String description
Deprecated.
-
disabled
protected boolean disabled
Deprecated.
-
-
Constructor Detail
-
DocumentSearchByPropertySuggester
public DocumentSearchByPropertySuggester()
Deprecated.
-
-
Method Detail
-
suggest
public List<Suggestion> suggest(String userInput, SuggestionContext context) throws SuggestionException
Deprecated.Description copied from interface:SuggesterCompute a list of possible user actions or intents given their input and context.- Specified by:
suggestin 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:SuggesterConfigure the Suggester instance with the parameters from the XML descriptor.- Specified by:
initWithParametersin interfaceSuggester- Parameters:
descriptor- XMap descriptor with the aggregate configuration information of the component.- Throws:
ComponentInitializationException
-
-