lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mark harwood <>
Subject Re: Thinking about better highlighting
Date Thu, 25 Aug 2005 15:53:06 GMT
>> but I'm still lost on how to convert
> everything to SpanQuery
> variants.

See the QuerySpansExtractor I linked to here:

This uses SpanTermQuery for individual TermQuerys. As
for all of the other query types eg fuzzy, prefix,
range etc these are always rewritten to TermQuerys
anyway (using Query.rewrite(reader)) so passing
re-written queries to the highlighter solves all these
issues. That has always been the advice in using the
existing term-based highlighter. This would also be
required when calling any new span-based highlighter.

How much free photo storage do you get? Store your holiday 
snaps for FREE with Yahoo! Photos

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message