You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by Konstantyn Smirnov <in...@yahoo.com> on 2009/02/19 11:03:48 UTC

Incremental search, CachingWrapperFilter and BooleanFilter

Hi all

I implemented an autocomplete functionality, which is pretty classical: a
user types in some words in an input field, and sees a list of matches in a
drop-down.

I've done it using filters (BooleanFilter, and TermsFilter + PrefixFilter),
and it's working against and index (loaded in RAM) with 3+ mio documents
with avg. time of 150-300 ms. 

The resulting filter instance looks like:

termsFilter + termsFilter + prefixFilter (the right part is left *open*)

Now I wanna try optimizing the whole thing by providing a possibility of
incremental search with the caching of a previous filter's results with
CachingWrapperFilter. 

AFAIK, you cannot modify a CWF, once it's filled. 

How a following scenario can be implemented?

- a user types 'aaa bbb' in, then adds 'ccc'. How to cache results of 'aaa
bbb' and the apply 'ccc'-filter to it and cache the new filter again?

Thanks
-- 
View this message in context: http://www.nabble.com/Incremental-search%2C-CachingWrapperFilter-and-BooleanFilter-tp22097226p22097226.html
Sent from the Lucene - Java Users mailing list archive at Nabble.com.


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