If I use a text file to define synonyms in Solr/Lucene like this:
foo, bar, goo abc, bar, xyz
The word bar is in both lines.
bar