I want to define token filter using java.can any one help me how to
used XContentFilterBuilder class to define filter and if possible
please explain with example.
used token filter what i want to used on search query:
I am using following java code to search data:
String indexName="test1";
String indexType="type1";
String data="is";
QueryStringQueryBuilder querystring = new
QueryStringQueryBuilder(data);
SearchResponse searchResponse =
client.prepareSearch(indexName).setTypes(indexType).setSearchType(SearchTyp
e.DEFAULT)
.setQuery(querystring.analyzer("whitespace"))
.setFilter(...............) ////Here needs to
define token filter*****
.setSize(100).execute().action Get();
I want to define token filter using java.can any one help me how to
used XContentFilterBuilder class to define filter and if possible
please explain with example.
used token filter what i want to used on search query:
I am using following java code to search data:
String indexName="test1";
String indexType="type1";
String data="is";
QueryStringQueryBuilder querystring = new
QueryStringQueryBuilder(data);
SearchResponse searchResponse =
client.prepareSearch(indexName).setTypes(indexType).setSearchType(SearchTyp
e.DEFAULT)
.setQuery(querystring.analyzer("whitespace"))
.setFilter(...............) ////Here needs to
define token filter*****
.setSize(100).execute().action Get();
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.