lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Shane <sha...@lexum.com>
Subject Re: Solr highlighter and custom queries?
Date Thu, 20 May 2010 20:29:03 GMT
Actually, its not as much a Solr problem as a Lucene one, as it turns out, the WeightedSpanTermExtractor
is in Lucene and not Solr.

Why they decided to only highlight queries that are in Lucene I don't know, but what I did
to solve this problem was simply to make my queries extends a Lucene query instead of just
"Query". 

So I decided to extend a BooleanQuery, which is the closest fit to what mine actually does.

This make the highlighting "do something" even though its not perfect.

Daniel Shane

Mime
View raw message