Synonym search using .txt file


(Ashwini Kumar) #1

https://www.elastic.co/guide/en/elasticsearch/reference/current/analysis-synonym-tokenfilter.html

I'm using synonym search by giving all the synonyms in the file. This file is being indexed at the time of index creation. How can I add more synonyms to this file and use newly added synonyms??

One solution is to reindex the data but my data is around 20GB so I have kept that as a last option.

Thanks


(Mark Harwood) #2

Synonyms can be applied to the text of documents at index time or the text of queries at query time.
There are pros and cons to each approach which are listed here: https://www.elastic.co/guide/en/elasticsearch/guide/2.x/synonyms-expand-or-contract.html#synonyms-expansion


(system) #3

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.