public class SiteSearchCriterionDefinition extends AbstractDefaultSearchCriterionDefinition
SearchCriterionDefinition
proposing a search criterion on the site of the indexed document.Modifier and Type | Field and Description |
---|---|
private SiteQueryHelper |
_siteQueryHelper |
Constructor and Description |
---|
SiteSearchCriterionDefinition(String id,
String pluginName,
I18nizableText label,
SiteEnumerator siteEnumerator,
SiteQueryHelper siteQueryHelper,
Optional<Searchable> searchable)
Default constructor
|
Modifier and Type | Method and Description |
---|---|
private static Optional<String> |
_widget() |
private static Optional<Map<String,I18nizableText>> |
_widgetParameters() |
Query |
getQuery(Object value,
Query.Operator operator,
String language,
Map<String,Object> contextualParameters)
Gets the query associated to the given value
|
dispose, getEnumeratedValues, getSearchable, isEnumerated, toJSON
getDefaultValue, getDescription, getEnumerator, getId, getLabel, getPluginName, getType, getValidator, getWidget, getWidgetParameters, setDefaultValue, setDescription, setEnumerator, setId, setLabel, setPluginName, setType, setValidator, setWidget, setWidgetParameters
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getContextPrefixLabels, getId, getLabel, getType, getValidator, getWidget, getWidgetParameters
private SiteQueryHelper _siteQueryHelper
public SiteSearchCriterionDefinition(String id, String pluginName, I18nizableText label, SiteEnumerator siteEnumerator, SiteQueryHelper siteQueryHelper, Optional<Searchable> searchable)
id
- The idpluginName
- The plugin namelabel
- The labelsiteEnumerator
- The SiteEnumerator
siteQueryHelper
- The SiteQueryHelper
searchable
- The Searchable
private static Optional<Map<String,I18nizableText>> _widgetParameters()
public Query getQuery(Object value, Query.Operator operator, String language, Map<String,Object> contextualParameters)
SearchCriterionDefinition
value
- the valueoperator
- the operatorlanguage
- The current search language.contextualParameters
- the search contextual parameters.