mark harwood wrote:
Isn't that what Query.extractTerms is for? Isn't it
implimented by all primitive Queries?..
As of last week, yes. I changed the SpanQueries to
implement this method and then refactored the
Highlighter package's QueryTermExtractor to make use
of this (it radically simplified the code in there).
This change to rely on extractTerms also means that
the highlighter now works properly with classes like
FilteredQuery.
Very nice. Yet another point I can add onto the huge list of reasons
our app should update Lucene. :-)
Although I'd rather not rewrite the query first, it feels like it would
use more memory than an extractTerms(IndexReader) method would. Maybe
I'm wrong on this, though.
Daniel
--
Daniel Noll
Nuix Pty Ltd
Suite 79, 89 Jones St, Ultimo NSW 2007, Australia Ph: +61 2 9280 0699
Web: http://www.nuix.com.au/ Fax: +61 2 9212 6902
This message is intended only for the named recipient. If you are not
the intended recipient you are notified that disclosing, copying,
distributing or taking any action in reliance on the contents of this
message or attachment is strictly prohibited.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]