Copy pasted following text from lucene mailing list as it describes my
problem:

" I'm trying to use multi-word synonyms. For example in my synonyms file I
have nhl, national
hockey league. If I do this index only, a search for nhl returns a correct
match, but highlights
the first word only, national. Ideally, it would highlight national hockey
league or not highlight
at all. If I do the synonyms at both index and query time, it finds the
match and does the
correct highlighting, but I understand it is not ideal to do synonyms at
index and query time.
I am expanding synonyms and using edismax. Thoughts? "

I really only want to use synonym expansion on index only, but this
behaviour makes that impossible.

Please advise.

--
View this message in context: 
http://lucene.472066.n3.nabble.com/Highlight-with-multi-word-synonyms-tp3610466p3610466.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to