ElasticSearch - cross_fields multi match with fuzzy search ElasticSearch - cross_fields multi match with fuzzy search elasticsearch elasticsearch

ElasticSearch - cross_fields multi match with fuzzy search


Jack Mich type of searches

  • Make sure when you are querying use OR and not AND e.g. Jack OR Mich
  • Also essentially you want to do a partial matching on the fields. For this you need to enable nGrams on these fields (do this in mapping) so that index have matches for partial words

You are using the correct query type. These two should solve your problems.

PS: We all are learning here, doing that together is fun :)


To answer your second problem:

It cannot be set to fuzzy search. I really need the fuzzy search but keep the quality of multi_match with cross_fields type.

The cross_fields query does not support fuzzy searching. See the issue on GitHub:

https://github.com/elasticsearch/elasticsearch/issues/6866