lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mark harwood <markharw...@yahoo.co.uk>
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:
http://issues.apache.org/bugzilla/show_bug.cgi?id=35518

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 http://uk.photos.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message