lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eran Sevi" <erans...@gmail.com>
Subject Re: Best way to get payloads
Date Mon, 26 May 2008 07:27:01 GMT
Thanks Grant,

I think it will take me too long to figure out all the details for
implementing it correctly.
Maybe someone else will pick up the glove.
On Thu, May 22, 2008 at 4:00 PM, Grant Ingersoll <gsingers@apache.org>
wrote:

> Unfortunately, I haven't had time to work on
> https://issues.apache.org/jira/browse/LUCENE-1001
>
> There is a _HALF BAKED_ patch up there, but I got stuck on it at the time
> due to not being sure how to handle NearSpans and haven't had a chance to go
> back to it.  I do believe it is possible to expose it via the Spans, so if
> you are so inclined, it is definitely something that needs to be
> implemented.
>
> -Grant
>
>
> On May 22, 2008, at 4:03 AM, Eran Sevi wrote:
>
> Hi,
>>
>> I'm running a SpanQuery and get the Spans result which tell me the
>> documents
>> and positions of what I searched for.
>> I would now like to get the payloads in those documents and positions
>> without having to iterate on TermPositions since I don't have a term but I
>> do have the document and position.
>>
>> Maybe Spans should be extended to also hold the payloads as well as the
>> start and end positions of the span.
>>
>> Another option might be to extend TermPositionVector and return an array
>> of
>> payloads.
>>
>> Can anyone think on a way to do it ?
>>
>> Thanks,
>> Eran.
>>
>
>
>
>
> --------------------------
> Grant Ingersoll
> http://www.lucidimagination.com
>
> Lucene Helpful Hints:
> http://wiki.apache.org/lucene-java/BasicsOfPerformance
> http://wiki.apache.org/lucene-java/LuceneFAQ
>
>
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message