Quick question, I don\'t know how to deal with synonyms which contains a space! I have the following config:
The SOLR config file
You are doing explicit mapping with =>
.
The Solr documentation says
Explicit mappings match any token sequence on the LHS of "=>" and replace with all alternatives on the RHS. These types of mappings ignore the expand parameter in the schema.
So I am guessing that if you search for NYC
you get nothing back, since it got replaced with New York
at index time.
Instead, can you try declaring them as equivalent synonyms? i.e. like
NYC, New York
instead of NYC => New York
.
Then I believe you can search for either of them and the result will be the same.