lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From eks dev <eks...@yahoo.co.uk>
Subject Re: [jira] Commented: (LUCENE-584) Decouple Filter from BitSet; relation with LUCENE-730
Date Sun, 15 Apr 2007 11:41:35 GMT
a totally different view on Filters would be to think about them as "index slicer", at the
lowest possible level, TermDocs.  Basically all document ids in such "Filter"  would appear,
at the TermDocs level "as if not in index", simply invisible.

TermDocs  that is aware  of  "Filtered doc ids" (doing skipping over "Filter AND Term").

for example, one could extend FilterIndexReader, provide setFilter(Matcher) method on it and
than method termDocs() would need to check if Matcher == null and return  TermDocs instanca
that hides or not Filtered documents

it looks too simple to be real, nice thing about it, as far as I can tell,  it does not require
 any changes  in Lucene core!   

conceptually,  it filters some documents out of index, simply provides another view on index
(hence FilterIndexReader). The same as current Filter, but with a bit shifted perspective
on providing "index view-s".

It is rather possible that this idea sucks big time, please let me know if you see anything
super wrong with it. 








      ___________________________________________________________
Yahoo! Answers - Got a question? Someone out there knows the answer. Try it
now.
http://uk.answers.yahoo.com/ 

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


Mime
View raw message