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 in ruleset not working as expected #32339

Open
akash-iconnect opened this issue Sep 4, 2024 · 0 comments
Open

synonyms in ruleset not working as expected #32339

akash-iconnect opened this issue Sep 4, 2024 · 0 comments
Assignees
Milestone

Comments

@akash-iconnect
Copy link

akash-iconnect commented Sep 4, 2024

synonyms/Replacements in ruleset file is not replacing text during query time.

To Reproduce
Steps to reproduce the behavior:
Ruleset file -

@default

#synonmys
bench saw -> table saw;
1st -> first;

Search query
select * from sources ecommerce.products where name contains "1st"

Indexed documents has field name with "first" as text

Expected behavior
Expected to replace "1st" with "first" at query time

Log messages -

          {
            "message": "   Evaluating rule '1st -> first' on 'name:1st' at '0:name:1st':"
          },
          {
            "message": "      '1st' does not match, label of 0:name:1st was required to be null"
          },
          {
            "message": "      Did not match '1st' at 0:name:1st"
          },
          {
            "message": "   Did not match rule '1st -> first' at 0:name:1st"
          },

Above is done using basic default vespa docker using latest version
Also tried adding below to ruleset. gives similar log error

[first] +> [first];
[first] :- 1st, first;

Log messages are not clear as why it is failing to replace text given in ruleset file.

@akash-iconnect akash-iconnect changed the title synonmys in ruleset not working as expected synonyms in ruleset not working as expected Sep 4, 2024
@kkraune kkraune added this to the soon milestone Sep 18, 2024
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

3 participants