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

Synonyms ranked higher than exact word #3410

Closed
jinyus opened this issue Jan 21, 2023 · 2 comments
Closed

Synonyms ranked higher than exact word #3410

jinyus opened this issue Jan 21, 2023 · 2 comments
Assignees
Labels
bug Something isn't working as expected v1.2.0 PRs/issues solved in v1.2.0 released on 2023-06-05
Milestone

Comments

@jinyus
Copy link

jinyus commented Jan 21, 2023

Describe the bug
I have the synonyms pairs:

{
"hop" : ["jump"],
"jump" : ["hop"],
}

ranking rules:
"rankingRules": [
            "exactness",
            "words",
            "typo",
            "proximity",
            "attribute",
            "sort",
        ]

Whenever I search for hop I see all results for jump before results for hop even though exactness should outrank the synonym. Is this the expected behavior? If so: Is it possible to get the exact word to outrank its synonyms?

Meilisearch version:
meilisearch-http 0.30.5

@loiclec
Copy link
Contributor

loiclec commented Jan 23, 2023

Hi @jinyus,
Thanks for the bug report, I could indeed reproduce the issue.
It's a mistake that a synonym is often treated as equally relevant to its original word. And it can also be fixed, although it won't be a trivial change. We're going to do a lot of deep work on the search algorithms in the coming weeks and months, and will keep this bug in mind in the process :-)

@loiclec loiclec self-assigned this Jan 23, 2023
@loiclec loiclec added the bug Something isn't working as expected label Jan 23, 2023
@curquiza curquiza modified the milestone: v1.1.0 Jan 23, 2023
@loiclec
Copy link
Contributor

loiclec commented May 15, 2023

Fixed by #3542 :-)

@loiclec loiclec closed this as completed May 15, 2023
@curquiza curquiza added this to the v1.2.0 milestone May 15, 2023
@meili-bot meili-bot added the v1.2.0 PRs/issues solved in v1.2.0 released on 2023-06-05 label Jun 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working as expected v1.2.0 PRs/issues solved in v1.2.0 released on 2023-06-05
Projects
None yet
Development

No branches or pull requests

4 participants