elasticsearch - Elastic Search Distinguish Fuzzy Results -


As a requirement when searching a fuzzy, we need to differentiate those results without matching a quick match The results are, which match the results,.

For example if index is in:

  • Red car
  • Fox like car
  • blue car

    And the query "purple or car ~" will have all the consequences with the fujis of 1, but "fox cart" will be marked specifically as a fuzzy result. I was wondering if there is any support for this facility or is there any suggestion about implementing this facility? I'm guessing that one option is setting Fazita to 0 and then executes the query and then marks the difference. I appreciate that someone can give better suggestions? Thank you in advance.

    Running two different questions is the approach that I understand most. / P>

    You can run two questions as if someone only matches exact, and other only fuzzy results, such as:

    • Exact match only : Purple car
    • Fuzzy matching only: purple car-carb

      Which set mutually You must do the exclusive, so you do not have to go through the problem of matching the results of a query with the other. It also easily fuzzy and loses the ability to suppress accurate results based on the score. Therefore, whatever approach fulfills your purposes.

      In addition, if you need to promote your exact matches at the top, then ask both a fuzzy word, and by increasing the exact word, the exact word should be done well: something like: / P>

        purple car ~ car ^ 100    

Comments

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -