GithubHelp home page GithubHelp logo

Comments (1)

rbayet avatar rbayet commented on June 18, 2024

TL;DR version: the multi_match does not handle correctly a minimum_should_match at 100% with queries that, once analyzed, might produce several tokens at the same place.
Which will be the case for "ProDuct" which will generate "product" (pos=0), "pro" (pos=0) and "duct" (pos=1).

Solution: Switching "split_on_case_change" to "false" in the definition of the "world_delimiter" filter in etc/elasticsuite_analysis.xml (see below) should do the trick, while losing the (dubious) benefit of being able to handle the "StarWars/starwars/star-wars" case.

        <filter name="word_delimiter" type="word_delimiter" language="default">
            <generate_word_parts>true</generate_word_parts>
            <catenate_words>true</catenate_words>
            <catenate_numbers>true</catenate_numbers>
            <catenate_all>true</catenate_all>
            <split_on_case_change>true</split_on_case_change> <== change this to false, clear caches and reindex
            <split_on_numerics>true</split_on_numerics>
            <preserve_original>true</preserve_original>
        </filter>

Enabling the experimental Search Relevance settings "Spellchecking Configuration > Term Vectors Configuration

[Experimental] Use all tokens from term vectors" is not guaranteed to provide any help, on the contrary in such case.

from elasticsuite.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.