Answer the question
In order to leave comments, you need to log in
Is it possible to prioritize exact matches during full-text search?
Suppose there is a field on which the ngram analyzer is set. For example, there are 3 documents where this field accepts sl. values:
Zelenogradskaya 13
Zelenogradskaya 13/1
Zelenogradskaya 13/3
How, when entering Zelenogradskaya 13, to force elastic to give priority to an exact match? He just thinks that the two entries below are more relevant.
Answer the question
In order to leave comments, you need to log in
Here, try to read here:
https://www.elastic.co/guide/en/elasticsearch/guid...
Pay attention to the boost key.
ES "drops" the "/" character by default.
I did similar - address search in ES. But I still haven't figured out how to overcome it.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question