Quick question, I don\'t know how to deal with synonyms which contains a space! I have the following config:
The SOLR config file
The problem is that solr synonyms tend to cause issues when the number of words in the first phrase is less than the number of words in the second phrase. When this happens, tokens overflow into the positions of other tokens.
I have a workaround for this problem, but it requires two uses of solr.SynonymFilterFactory at index and query time.
Like this :
In the first filter you will have: New York => New_York
In the second filter: NYC => New_York
Now a search for New York will return results containing NYC and vice verses.
On a final note: This will method will not work unless it is at index and query time.