On 19-Sep-07, at 1:12 PM, Marc Bechler wrote:

Hi out of there,

I just walked through the mailing list archive, but I did not find an appropriate answer for phrase highlighting.

I do not have any highlighting section (and no dismax handler definition) in solrconfig.xml. This way (AFAIK :-)), the standard lucene query syntax should be supported in it's full functionality. But, in this case double quoting the search expressions does not have any effect on highlighting, i.e.

Assume we have the following text (of field type text)
It is hard work to do the hard complex work

A query for
"hard work"
(with the double quotes) results the highlighted section
It is <em>hard</em> <em>work</em> to do the <em>hard</em> complex <em>work</em>

Although I would guess that the correct answer should be
 It is <em>hard work</em> to do the hard complex work

Does anyone of the SOLR experts have a good answer for me? (I guess that I still did not understand the functional relationship between highlighting, query specification and index specification...)

It currently is not supported by Solr. There is work in lucene that supports this (see https://issues.apache.org/jira/browse/LUCENE-794? page=com.atlassian.jira.plugin.system.issuetabpanels:comment- tabpanel#action_12526803), but it is currently not integrated.

It would make a great project to get one's hands dirty contributing, though :)

-Mike

Reply via email to