multi_match query?
-
Is it possible to use the
multi_match
ElasticSearch query with the/api/user/search
endpoint? -
I believe so. When you use the
query
option, we are essentially passing that query object straight through. -
I tried to use
multi_match
in search-query without success. The following query does not find users? Any suggestions why?{ "bool" : { "must" : [ { "multi_match" : { "query" : "*", "fields" : [ "firstName^3", "lastName^3", "email" ] } } ] } }
-
It looks like multi match (at least as of 2019) doesn't support wildcards:
[a]
multimatch
query requiresmatch
queries as its internal queries. And amatch
query doesn't support wildcards.https://discuss.elastic.co/t/query-with-multimatch-and-wildcard/189962
Can you try with a non wildcard query?