You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Kaushik <ka...@gmail.com> on 2015/04/21 15:53:30 UTC

Correct usage for Synonyms.txt

Is my understanding of synonyms.txt configuration correct
1. When the user can search from a list of synonyms and the searchable
document can have any synonym the configuration should be like below.
Fuji, Gala, Braeburn, Crisp => Fuji, Gala, Braeburn, Crisp

2. When the user can search from a list of synonyms and the searchable
document can only have a preferred term (for e.g. Apple)
Apple, Fuji, Gala, Braeburn, Crisp

OR

Fuji, Gala, Braeburn, Crisp => Apple


Is there any other format that I am missing?

Thank you,
Kaushik