Need full-text search for documents in Elasticsearch. I make the following request:

{ "query":{ "match":{ "_all":"Дмитр" } } } 

Finds nothing, but when I fully register the name

 { "query":{ "match":{ "_all":"Дмитрий" } } } 

Finds all the entries that have this name.

The request is sent by the POST method to the url: http://127.0.0.1/myindex/people/_search

    1 answer 1

    In your case, most likely, the tokens received by the standard analyzer fall into _all. You need to add mapping. If you need to find documents on request "Dmitr", it is possible for autocomplex, then you should use a custom analyzer with edgeNGram

    And look for a specific field where there is a full name. Do not clutter up _all ("include_in_all": false for this field).

    Very little information to give a specific example of mapping and query.