Issue with QueryStringQuery regular expression

ES is upgraded to 5.6.9. the following query which used to return hits in 2.4 version doesnt return anymore.Assume that there is a field 'PlanID' whose value is "Plan1005". In 5.6.9, this works only when search string is lowercased "/plan1005/", but not with "/PLAN1005/"

{
"from": 0,
"size": 20,
"query": {
"bool": {
"must": {
"query_string": {
"query": "PlanID: /Plan1005/",
"default_field": "PlanID",
"default_operator": "and",
"allow_leading_wildcard": true,
"analyze_wildcard": true
}
}
}
},
"stored_fields": "*"
}

So, issue seems to be with "lowercase_expanded_terms" not being honoured from 5.x..

In that case, will the analyzer configured at query level analyzes the query string for a regex QueryStringQuery ? In my case, the analyzer doesnt seem to do so.

Please confirm the expected behaviour

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