C
C
chelkaz2017-04-18 14:34:18
elasticsearch
chelkaz, 2017-04-18 14:34:18

Elasticsearch - Why do results disappear in the middle of a word?

Why if I start writing for example:
чита забай
Then there are no results.
If:
чита забайкальский
Then all
the necessary ones ... Why doesn’t it display similar ones by reading it?
If a:
чита забайкаль

'query' => [
           "multi_match" => [
                     "query" => $q,
                     "type" => "most_fields",
                     "boost" => 3.0,
                     "fields" => [
                            "name^3",
                            "text^2",
                            "point^1",
                          ],
                      "fuzziness" => 3,
                      "prefix_length" => 0,
                      "operator" =>  "and"
                  ]
],
'sort' => [
         '_score' => ['order' => 'desc']
]

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dimonchik, 2017-04-18
@dimonchik2013

"you again?" (c)
go to the Sphinx)
such shnyaga is done by the second request or filter

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question