Re: Filter

2006-01-27 Thread Morus Walter
On Thu, 26 Jan 2006 11:33:50 -0800 (PST) Chris Hostetter <[EMAIL PROTECTED]> wrote: > > : It seems your interface requires that the SearchFilter know all of the query > : results before hand. I am not sure this works well with the partial result > : sets that Lucene supports. > > No, I'm not sug

Re: Filter

2006-01-27 Thread Paul Elschot
On Friday 27 January 2006 09:19, Morus Walter wrote: > On Thu, 26 Jan 2006 11:33:50 -0800 (PST) > Chris Hostetter <[EMAIL PROTECTED]> wrote: > > > > > : It seems your interface requires that the SearchFilter know all of the query > > : results before hand. I am not sure this works well with the

Re: Filter

2006-01-27 Thread Yonik Seeley
On 1/26/06, Chris Hostetter <[EMAIL PROTECTED]> wrote: > I was suggesting an interface that would allow the > searcher to first ask the filter "what is the lowest doc id that you > allow?" score that doc, then say "what is the next doc id you allow?" and > score that one. Paul has already implemen

Re: NearSpans issue

2006-01-27 Thread Erik Hatcher
One of the engineers decided to remove that exception to see what effect it had on our particular troubling query: Index: src/java/org/apache/lucene/search/spans/NearSpans.java === --- src/java/org/apache/lucene/search/spans/NearSp

[jira] Updated: (LUCENE-413) [PATCH] BooleanScorer2 ArrayIndexOutOfBoundsException + alternative NearSpans

2006-01-27 Thread Erik Hatcher (JIRA)
[ http://issues.apache.org/jira/browse/LUCENE-413?page=all ] Erik Hatcher updated LUCENE-413: Attachment: (was: BooleanScorer2.java) > [PATCH] BooleanScorer2 ArrayIndexOutOfBoundsException + alternative NearSpans > ---

[jira] Updated: (LUCENE-413) [PATCH] BooleanScorer2 ArrayIndexOutOfBoundsException + alternative NearSpans

2006-01-27 Thread Erik Hatcher (JIRA)
[ http://issues.apache.org/jira/browse/LUCENE-413?page=all ] Erik Hatcher updated LUCENE-413: Attachment: (was: BooleanScorer2Patch20050721.txt) > [PATCH] BooleanScorer2 ArrayIndexOutOfBoundsException + alternative NearSpans > ---

[jira] Updated: (LUCENE-413) [PATCH] BooleanScorer2 ArrayIndexOutOfBoundsException + alternative NearSpans

2006-01-27 Thread Erik Hatcher (JIRA)
[ http://issues.apache.org/jira/browse/LUCENE-413?page=all ] Erik Hatcher updated LUCENE-413: Attachment: (was: TestSpansPatch1.txt) > [PATCH] BooleanScorer2 ArrayIndexOutOfBoundsException + alternative NearSpans > ---

[jira] Commented: (LUCENE-413) [PATCH] BooleanScorer2 ArrayIndexOutOfBoundsException + alternative NearSpans

2006-01-27 Thread Erik Hatcher (JIRA)
[ http://issues.apache.org/jira/browse/LUCENE-413?page=comments#action_12364224 ] Erik Hatcher commented on LUCENE-413: - I have removed a few of the attachments to this issue, as they have already been applied to the latest codebase. This will hopefull

[jira] Commented: (LUCENE-413) [PATCH] BooleanScorer2 ArrayIndexOutOfBoundsException + alternative NearSpans

2006-01-27 Thread Erik Hatcher (JIRA)
[ http://issues.apache.org/jira/browse/LUCENE-413?page=comments#action_12364232 ] Erik Hatcher commented on LUCENE-413: - I ran into one issue after applying all of these patches: [javac] /Users/erik/dev/lucene/src/java/org/apache/lucene/search/Bool

[jira] Updated: (LUCENE-413) [PATCH] BooleanScorer2 ArrayIndexOutOfBoundsException + alternative NearSpans

2006-01-27 Thread Erik Hatcher (JIRA)
[ http://issues.apache.org/jira/browse/LUCENE-413?page=all ] Erik Hatcher updated LUCENE-413: Comment: was deleted > [PATCH] BooleanScorer2 ArrayIndexOutOfBoundsException + alternative NearSpans > -

Re: NearSpans issue

2006-01-27 Thread Paul Elschot
On Friday 27 January 2006 16:33, Erik Hatcher wrote: > One of the engineers decided to remove that exception to see what > effect it had on our particular troubling query: > > Index: src/java/org/apache/lucene/search/spans/NearSpans.java >

Re: NearSpans issue

2006-01-27 Thread David Balmain
Hi Erik, The only way I can see this exception being thrown is when you have two SpanCells with the same start in a particular document. In this case matchIsOrdered will return false even though the SpanCells may still be ordered in the priority queue. The current code for matchIsOrdered is; pr

Re: Filter

2006-01-27 Thread Chris Hostetter
: > > public interface DocIterator { : > > public int doc(); : > > public boolean next(); : > > public boolean skipTo(int target); : > > } : Btw. the DocNrSkipper referred to earlier has this DocIterator functionality : in one method: : : int nextDocNr(int) :