Re: span / position increment issue

2006-01-05 Thread Paul Elschot
On Thursday 05 January 2006 19:33, Marc Hadfield wrote: > > Thanks Erik, Hoss - > > I will try MultiPhraseQuery and report back. > > Back in an email thread with Doug be mentioned SpanQuery would work, and > in a fashion it does, but I can't differentiate between terms at the > same position a

Re: span / position increment issue

2006-01-05 Thread Marc Hadfield
Thanks Erik, Hoss - I will try MultiPhraseQuery and report back. Back in an email thread with Doug be mentioned SpanQuery would work, and in a fashion it does, but I can't differentiate between terms at the same position and contiguous positions. The problem gets worse if I want to test fo

Re: span / position increment issue

2006-01-05 Thread Erik Hatcher
Marc, SpanNearQuery isn't capable of performing the proximity to within only a single position in the manner you've described. A slop of 0 means the terms must be contiguous with no gaps, which also allows for matches in the same position as in your first example. I think MultiPhraseQuer

Re: span / position increment issue

2006-01-04 Thread Chris Hostetter
: i have a problem with a SpanNearQuery returning incorrect (false : positive) results. I'm not familiar with how Span queries are implimented, but there doesn't appear to be any test cases dealing with an index where term position increments are ever 0, so i can neither confirm nor deny the bug

span / position increment issue

2006-01-04 Thread Marc Hadfield
hello all - i have a problem with a SpanNearQuery returning incorrect (false positive) results. I am creating the context of a field using tokens which have position increment set to either 1 or 0. The position increment is set to 0 for special tokens, in this case part-of-speech markers.