NearSpansUnordered payloads

2009-11-20 Thread Jason Rutherglen
I'm interested in getting the payload information from the matching span, however it's unclear from the javadocs why NearSpansUnordered is different than NearSpansOrdered in this regard. NearSpansUnordered returns payloads in a hash set that's computed each method call by iterating over the SpanCe

Re: NearSpansUnordered payloads

2009-11-24 Thread Christopher Tignor
I am also having a hard time understanding the NewSpansUnordered isPayloadAvilable() method. For my test case where 2 tokens are at the same position, the code below seems to be failing in traversing the 2 SpansCells. The first SpansCell it retrieves has its next field set to null so it cannot fi

Re: NearSpansUnordered payloads

2009-11-25 Thread Grant Ingersoll
On Nov 20, 2009, at 6:49 PM, Jason Rutherglen wrote: > I'm interested in getting the payload information from the > matching span, however it's unclear from the javadocs why > NearSpansUnordered is different than NearSpansOrdered in this > regard. > > NearSpansUnordered returns payloads in a has

Re: NearSpansUnordered payloads

2009-11-25 Thread Mark Miller
Grant Ingersoll wrote: > On Nov 20, 2009, at 6:49 PM, Jason Rutherglen wrote: > > >> I'm interested in getting the payload information from the >> matching span, however it's unclear from the javadocs why >> NearSpansUnordered is different than NearSpansOrdered in this >> regard. >> >> NearSpans

Re: NearSpansUnordered payloads

2009-11-25 Thread Jason Rutherglen
I don't mind adding the "positions" of the payloads in them. However, maybe we can be little more clear in the javadocs what's going on underneath? On Wed, Nov 25, 2009 at 5:36 AM, Mark Miller wrote: > Grant Ingersoll wrote: >> On Nov 20, 2009, at 6:49 PM, Jason Rutherglen wrote: >> >> >>> I'm i

NearSpansUnordered payloads not returning all the time

2009-12-08 Thread Jason Rutherglen
Howdy, I am wondering if anyone has seen NearSpansUnordered.getPayload() not return payloads that are verifiably accessible via IR.termPositions? It's a bit confusing because most of the time they're returned properly. I suspect the payload logic gets tripped up in NearSpansUnordered. I'll put to

Re: NearSpansUnordered payloads not returning all the time

2009-12-09 Thread Michael McCandless
There was a thread a while back about how span queries don't enumerate every possible span, but I can't remember if that included sometimes missing payloads... Mike On Tue, Dec 8, 2009 at 7:34 PM, Jason Rutherglen wrote: > Howdy, > > I am wondering if anyone has seen > NearSpansUnordered.getPayl

Re: NearSpansUnordered payloads not returning all the time

2009-12-09 Thread Jason Rutherglen
Right we're getting the spans, however it's just the payloads that are missing, randomly... On Wed, Dec 9, 2009 at 2:23 AM, Michael McCandless wrote: > There was a thread a while back about how span queries don't enumerate > every possible span, but I can't remember if that included sometimes > m

Re: NearSpansUnordered payloads not returning all the time

2009-12-09 Thread Michael McCandless
That sounds familiar... try to track down the last thread maybe? I think it was this: if the payload was already retrieved for a prior span then the current span won't be able to retrieve it, so even though you know a payload falls within the span you're looking at, you won't get it back, if it al

Re: NearSpansUnordered payloads not returning all the time

2009-12-09 Thread Jason Rutherglen
Mike, Is this the thread? http://www.lucidimagination.com/search/document/1e87d488a904b89f/spannearquery_s_spans_payloads#8103efdc9705a763 Maybe we need a recommended workaround for this? Jason On Wed, Dec 9, 2009 at 1:17 PM, Michael McCandless wrote: > That sounds familiar... try to track do

Re: NearSpansUnordered payloads not returning all the time

2009-12-09 Thread Michael McCandless
Yes, you found it! Is that what you're hitting? I don't know of a workaround though... this is just how SpanQuery currently works... Mike On Wed, Dec 9, 2009 at 4:56 PM, Jason Rutherglen wrote: > Mike, > > Is this the thread? > > http://www.lucidimagination.com/search/document/1e87d488a904b89f