Re: FilteredQuery within BooleanQuery issue

2006-03-05 Thread Erik Hatcher
Yonik, Thanks for your detailed reply. I'm looking at LUCENE-330 but unfortunately the patches are now stale and I'm not sure which files are applicable to this scenario. Hopefully Paul can advise. Thanks, Erik On Mar 4, 2006, at 12:59 AM, Yonik Seeley wrote: This is the first t

Re: FilteredQuery within BooleanQuery issue

2006-03-03 Thread Yonik Seeley
This is the first time I've looked at FilteredQuery, but the scorer is indeed flawed IMO. next() and skipTo() simply iterate over the documents that match the query, and just modify the score to return 0 if it doesn't match the filter. public boolean next() throws IOException { return sc

FilteredQuery within BooleanQuery issue

2006-03-03 Thread Erik Hatcher
I've run into what I feel is an issue with FilteredQuery. The best description is an example. First I've indexed three documents: public void setUp() throws IOException { RAMDirectory directory = new RAMDirectory(); IndexWriter writer = new IndexWriter(directory, new WhitespaceAna