Dear AtoM users,
I've been trying to configure ElasticSearch Synonym to use on AtoM search engine, but with no results.
Based in:
I've started with a simple example, create a synonym of Dr and Doctor.
1. Just edit the: search.yml
sudo vi plugins/arElasticSearchPlugin/config/search.yml
Adding the lines (in blue):
analyzer:
synonym:
tokenizer: whitespace
filter: [synonym]
default:
...
filter:
synonym:
type: synonym
synonyms: [dr, doctor]
tokenizer: whitespace
engram:
...
2. (save file) and then run:
sudo php symfony cc
sudo service php7.2-fpm restart
sudo systemctl restart memcached
sudo php symfony search:populate
But when I search in AtoM for "dr" only shows occurrences with "Dr"
And when I search for "doctor" only shows occurrences with "Doctor"
If I use: "dr OR doctor" is returns both occurrences, just like I wanted to, without using "OR".
Please, has anyone configured this ES Synonym in AtoM? What I'm I doing wrong?
Thank you in advance!
Best regards,
Ricardo Pinho