I have a synonym file, used at index time, that contains this equivalence:
uc, university of california
I then looked at how indexing "uc berkeley" would look on analysis.jsp. I was surprised:
org.apache.solr.analysis.SynonymFilterFactory {synonyms=companysyns.txt, expand=true, ignoreCase=true, luceneMatchVersion=LUCENE_36}
position 1 2 3
term text university berkeley california
uc of
type SYNONYM word SYNONYM
SYNONYM SYNONYM
startOffset 0 3 3
0 3
endOffset 2 11 11
2 11
Note that "berkeley" appears in between "university" and "california". This has meant that, when I search for "university of california berkeley", I don't get a match. But "university berkeley california" works!
How can I make sure "university of california berkeley" works properly?
Thanks!