You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by Eran Sevi <er...@gmail.com> on 2008/05/22 10:03:10 UTC
Best way to get payloads
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.
Re: Best way to get payloads
Posted by Eran Sevi <er...@gmail.com>.
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 <gs...@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
>
>
Re: Best way to get payloads
Posted by Karl Wettin <ka...@gmail.com>.
Is this perhaps sort of pre-written response to the question on
SpanNearQuery I sent just a minute ago?
karl
22 maj 2008 kl. 15.00 skrev Grant Ingersoll:
> 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
>
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org
Re: Best way to get payloads
Posted by Grant Ingersoll <gs...@apache.org>.
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