Hi
I am using elasticsearch1.7.2 version,
The signature field which i am storing is not_analyzed while index creation is as follows
Column name is : signature
"signature" : { "type" : "string","index" : "not_analyzed","fielddata": {"format": "doc_values"}}
In the column the value is stored seems
String signature="PROTOCOL-DNS TMG Firewall Client long host entry exploit attempt "
I am trying to fetch the signature value using the following options as follows
query.must(QueryBuilders.termQuery("signature",signature));
andFilterBuilder.add(FilterBuilders.termFilter("signature",QueryParser.escape(signature)));
andFilterBuilder.add(FilterBuilders.termFilter("signature",signature));
It wont give the results using above,
The only way i am geeting the results with the following approach,
query.must(QueryBuilders.wildcardQuery("signature",""+signature+""));
Is i did anything wrong with the above query formation.Please suggest.
Thanks
Moni