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

Search by disabled attribute in typeTolerance not work #715

Open
expondo opened this issue Jan 15, 2025 · 1 comment
Open

Search by disabled attribute in typeTolerance not work #715

expondo opened this issue Jan 15, 2025 · 1 comment
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@expondo
Copy link

expondo commented Jan 15, 2025

Description
Hello, i have upgraded my meilisearch to the newest version 1.12.3 (from 1.4) and now when i try to search by some field called "order_id", there is no results.
I found that i have this field in settings:
typoTolerance.disableOnAttributes: [ "order_id" ]
When i remove that attribute from disableOnAttributes, then i can search by its value

What could be the reason for this behavior?

PS the results described here i got on my meilisearch:7700 panel.

Expected behavior
Search by attribute excluded from typoTolerance works: eg:
in document i have "order_id": 1234, then when i search for "1234" i want to get result with documents, where order_id = 1234.

Current behavior
part of settings:

"searchableAttributes": [ "*"],
"typoTolerance": {
    "enabled": true,
    "minWordSizeForTypos": { "oneTypo": 9, "twoTypos": 12 },
    "disableOnWords": [],
    "disableOnAttributes": [
        "order_id"
    ]
},

order_id = 1234 in document, search by "1234" => no results.

Environment:

  • OS: Ubuntu 20.04.6 LTS
  • Meilisearch version: 1.12.3
  • meilisearch-php version: v1.12.0

UPDATE: this issue is probably related to meilisearch, not to meilisearch-php lib, may should i move this issue to related lib?

@norkunas norkunas added the bug Something isn't working label Jan 15, 2025
@expondo
Copy link
Author

expondo commented Jan 16, 2025

I've moved that issue to meilisear/meilisearch as it is better place: meilisearch/meilisearch#5240

@curquiza curquiza added the good first issue Good for newcomers label Jan 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants