Problem/Motivation

The support for synonyms is necessary so that the user can set the words with the same meaning. The meilisearch then returns the results for both words.

Comments

rokzabukovec created an issue. See original summary.

rokzabukovec’s picture

StatusFileSize
new9.7 KB

Hi.
I created a patch that adds a new index processor that saves the synonyms to the meilisearch server. After the processor is enabled
the user can add synonyms as a list of comma separated key:value sets. If the word have multiple synonyms you must declare each relationship on its own.
Please review the patch.

rokzabukovec’s picture

Status: Active » Needs review
rokzabukovec’s picture

StatusFileSize
new10.09 KB

I talked with the maintainer and we decided that the synonyms format should be changed
from:
key:value1, key2:value1

to:
key1:value1, value2, value3
key2:value1, value2, value3

So, if you search for the key1, the results will contain all the values after the colon.
Please review.

rokzabukovec’s picture

StatusFileSize
new12.52 KB

HI.
I fixed the validation of the synonyms processor and added the option to reset the synonyms on the Meilisearch server after the processor is disabled.

Please review.

deaom’s picture

Status: Needs review » Reviewed & tested by the community

Hi @rokzabukovec, I tested the patch, the synonyms are working as expected, they go one way, which is also clear from the provided example on the processors page and how to make it "go" two way :). The validation also does work, so I'm marking this as RTBC.

  • rokzabukovec committed 1898aec on 1.0.x
    Issue #3161621 by rokzabukovec, DeaOm: Add support for synonyms
    
rokzabukovec’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.