@Named(value="keyword") @Singleton public class KeywordSearchContribution extends SearchContributionSupport
SearchContribution
(adds filter as an ES query string).Constructor and Description |
---|
KeywordSearchContribution() |
Modifier and Type | Method and Description |
---|---|
void |
contribute(org.elasticsearch.index.query.BoolQueryBuilder query,
String type,
String value)
Contribute to search query/filter.
|
escape
public static final String NAME
public void contribute(org.elasticsearch.index.query.BoolQueryBuilder query, String type, String value)
SearchContribution
contribute
in interface SearchContribution
contribute
in class SearchContributionSupport
query
- to contribute totype
- type of filtervalue
- value of filterCopyright © 2008–2021 Sonatype, Inc.. All rights reserved.