Koji, maybe you missed my confirmation due to the hijacking of the thread.

I am using Solr 4.0 and after reindexing with LUCENE_33 I got the behaviour
for highlighting I want. So yeah, I can confirm this is a bug. 

Looking forward to a fix :)


Koji Sekiguchi wrote
> 
> (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/
> 


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

Reply via email to