How to force a query_string query to be case insensitive regardless of query body with icu_analyzer?

I have a text field (also a multifield with whitespace analyser on it but the query here is for the 'top-level' analysed text which uses icu_analyser on elasticsearch 5.4)

The following queries yield different results:

	"query": {
		"bool": {
			"must": [{
				"query_string": {
					"query": "(my_stuff.body:trevor)"

I'd want the query to match on 'Trevor' and 'TREVOR' in docs too. This appears to be the behaviour on the standard analyser. How can I get this case-insensitive behaviour in icu_analyzer fields?

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