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.
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | 3161621-5.patch | 12.52 KB | rokzabukovec |
| #4 | 3161621-4.patch | 10.09 KB | rokzabukovec |
| #2 | 3161621-2.patch | 9.7 KB | rokzabukovec |
Comments
Comment #2
rokzabukovec commentedHi.
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.
Comment #3
rokzabukovec commentedComment #4
rokzabukovec commentedI 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.
Comment #5
rokzabukovec commentedHI.
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.
Comment #6
deaom commentedHi @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.
Comment #8
rokzabukovec commented