I have a User object with properties Name and Surname. I want to search these fields using one query, and I found multi_match
in the documentation, but I don\'t
I would not use wildcards, it will not scale well. You are asking a lot of the search engine at query time. You can use the nGram filter, to do the processing at index-time not search time.
See this discussion on the nGram filter.
After indexing the name
and surname
correctly (change your mapping, there are examples in the above link) you can use multi-match but without wildcards and get the expected results.