Can someone please indicate how a custom analyzer should be defined and then used in an ElasticSearch query using the Java API?
I know how to write a custom analyzer to be applied on an index (like here)
but I would like to apply it on a query e.g. to replace the english analyzer in
QueryBuilder matchQuery = matchQuery("content", stringQuery).analyzer("english");