(11/12/24 21:20), O. Klein wrote:
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.

I think this is a bug.

I can reproduce the same problem with Solr 4.0. But if I set
<luceneMatchVersion>LUCENE_33</luceneMatchVersion> in solrconfig.xml and
re-index, the problem is gone.

What version of Solr are you using? Can you try LUCENE_33 and report the result?

koji
--
http://www.rondhuit.com/en/

Reply via email to