`multi_match``prefix_phrase using _all

I have a problem with this unexpected behavior:

I am using a test index with this content:

DELETE /test_index?ignore_unavailable=true POST /test_index/content/1 { "name": "lorem" } 

Now I can not execute the multi_match phrase_prefix request using _all while searching, for example. lore .

Thus, the following query yields 0 results:

 POST /test_index/content/_search { "query": { "multi_match": { "query": "lore", "fields": [ "_all" ], "type": "phrase_prefix" } } } 

Changing query to lorem (full term) leads to the expected document.

In addition, changing the request in accordance with the name field also works.

I tried this on ES 2.3.1. Can someone confirm, explain or give a solution?

0
source share
2 answers

This should work OOTB in ES 5.1.

0
source

Source: https://habr.com/ru/post/1207209/


All Articles