We've spotted some unusual behaviour when using synonyms, and I just wanted to confirm whether we've found a bug or a feature
We've a synonym list that contains something like this
dog, pet
pet, cat
cat, kitten
and we are seeing synonym matches of cat and kitten when searching for dog. Is it expected behaviour for elastic to chain the synonyms together? Is there a way to enforce a strict single synonym match?
Robbo, could you provide your full index mapping, please?
Are you doing synonym expansion at indexing or search time, or both? If it's the latter I can see how "dog" could match "cat" via "pet", but "kitten" is a bit trickier. (Doing expansion at both index and search time isn't recommended.)
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.