You can also access payloads through the TermPositions enum, but, this
is by term and then by doc.

It sounds like you need to iterate through all terms sequentially in a
given field in the doc, accessing offset & payload?  In which case
reanalyzing at search time may be the best way to go.

You can store term vectors in the index, which will store offsets (if
you ask it to), but, payloads are not currently stored with term
vectors.

Mike

On Fri, Feb 26, 2010 at 7:42 PM, Christopher Condit <con...@sdsc.edu> wrote:
>> Payload Data is accessed through PayloadSpans so using SpanQUeries is the
>> netry point it seems.  There are tools like PayloadSpanUtil that convert 
>> other
>> queries into SpanQueries for this purpose if needed but the api for Payloads
>> looks it like it goes through Spans is the bottom line.
>
> So there's no way to iterate through all the payloads for a given field? I 
> can't use the SpanQuery mechanism because in this case the entire field will 
> be displayed - and I can't search for "*". Is there some trick I'm not 
> thinking of?
>
>> this is the tip of the iceberg; a big dangerous iceberg...
>
> Yes - I'm beginning to see that...
>
> Thanks,
> -Chris
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
> For additional commands, e-mail: java-user-h...@lucene.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
For additional commands, e-mail: java-user-h...@lucene.apache.org

Reply via email to