Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bitbag_es_fuzziness parameter doenst do anyting #262

Open
stefanz92 opened this issue Nov 26, 2024 · 0 comments
Open

bitbag_es_fuzziness parameter doenst do anyting #262

stefanz92 opened this issue Nov 26, 2024 · 0 comments

Comments

@stefanz92
Copy link

stefanz92 commented Nov 26, 2024

Description

The bitbag_sylius_elasticsearch_plugin.query_builder.contains_name service currently uses automatic fuzziness in elasticsearch queries, which may lead to unexpected search results. There should be a way to configure or disable this fuzziness setting.

Current Behavior

  • Search queries automatically include fuzziness (set to "AUTO")
  • No configuration option exists to disable or modify this behavior

Expected Behavior

  • Ability to configure fuzziness level through service definition
  • Option to completely disable fuzziness when needed

Proposed Solution

Add a fuzziness parameter to the service definition that can be configured in services.yaml:

<service id="bitbag_sylius_elasticsearch_plugin.query_builder.contains_name" class="BitBag\SyliusElasticsearchPlugin\QueryBuilder\ContainsNameQueryBuilder">
            <argument type="service" id="sylius.context.locale" />
            <argument type="service" id="bitbag_sylius_elasticsearch_plugin.search_property_name_resolver_registry" />
            <argument>%bitbag_es_fuzziness%</argument>
        </service>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant