Hi All,
We have field col1 which contains values in below pattern.
aa:bb:cc
aa:ee:ff
aa:dd:gg
We are using QueryString query to search the record.
If we are searching for *a:bb:cc , then query is returning all the above
three records, but the expected record in only aa:bb:cc one. Even query is
returning records which contains a, aa, aaa, etc.
Below is the query we are using:
String query = "{"query" : "
+ QueryBuilders
.queryString(
"col1"
+ ":"
+ input
)
.analyzeWildcard(true)
.defaultOperator(
Operator.AND)
.toString() + "}";
Regards,
Ankit Jain
--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.