Query String Query is not working as expected when searched over not_analyzed fields

Hi I am using the not analyzed over the field

when i search with the below query

"query": {
"query_string": {
"query": "06H121605E",
"default_field": "invoiceID"
}
}
}
I am getting 2 documents in results

but when I went for the wild card

"query": {
"query_string": {
"query": "06H121605*",
"default_field": "invoiceID"
}
}

its giving me hits as null

Here is my mapping for the invoiceID field

"invoiceID": {
"type": "string",
"index": "not_analyzed"
},

Can you produce a full script to reproduce your problem as explained in About the Elasticsearch category?

Will be better to get a chance to have an answer.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.