Re: Possible bug in SpanNearQuery

2007-05-07 Thread Moti Nisenson
ass to start with Test... instead of ending in ...Test. Shall we move further discussion to the java-dev list? Regards, Paul Elschot On Monday 07 May 2007 09:44, Moti Nisenson wrote: > Paul, > > The comment should be moved up into SpanNearQuery itself (as opposed to the > commen

Re: Possible bug in SpanNearQuery

2007-05-07 Thread Moti Nisenson
ng * t1 t2 t3 * with slop at least 1, the fragment: * t1 t2 t1 t3 t2 t3 * matches twice: * t1 t2 .. t3 * t1 .. t2 t3 */ Unfortunately for the unordered case in NearSpansUnordered.java there is no class comment available in the code. You can take a look at the existing span tests here: ht

Possible bug in SpanNearQuery

2007-05-06 Thread Moti Nisenson
Looking over the implementation of SpanNearQuery I came upon what looked like a bug. Below is a test which fails due to it. SpanNearQuery doesn't return all matching spans; once it's found a span it always increments the span of the clause appearing first in that span (ie. in the example below the

Merging Indeces

2007-04-16 Thread Moti Nisenson
Hi, I was wondering if the addIndexes() method in IndexWriter can be used for updating documents. Specifically, I'd like to leave my primary index alone during the update process. Instead, I want to use a separate index (on a RAMDirectory), and to make the updateDocument() calls on it and finall