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 Alex vB <ma...@avomberg.de> on 2011/02/28 22:38:20 UTC

How are stored Fields/Payloads loaded

Hello everybody,

I am currently unsure how stored data is written and loaded from index. 
I want to store for every term of a document some binary data but only once
and not for every position! 
Therefore I am not sure if Payloads or stored Fields are the better solution
(Or the not implemented feature Column Stride Field).

As far as I know all fields of a document are loaded by Lucene during
search. With large stored fields this can be time consuming and therefore
exists the possibility to load specific fields with FieldSelector. Maybe I
could create for each term a stored Field (up to several thousand Fields!)
and read those fields depending on the query term. Is this a common
approach?
The other possibility (like I have implemented it at the moment) is to store
per term a payload but only on the first term position. Payloads are loaded
only if I retrieve them from a hit right? So my current posting list looks
like this:
http://lucene.472066.n3.nabble.com/file/n2598739/Payload.png 
Picture adapted from M. McCandless "Fun with Flex"

How will the feature Column Stride Field (or per-document field) work? It's
not clear for me what "per Document" exactly means for the posting list
entries. I think (hope :P) it works like this:
http://lucene.472066.n3.nabble.com/file/n2598739/CSD.png 
Picture adapted from M. McCandless "Fun with Flex"


Do I understand the Column Stride Field correct? What would give me the best
performance (Stored Field, Payload, CSD)? Are there other ways to retrieve
payloads during search than Spanquery (I would like to use a normal query
here)?

Regards
Alex

-- 
View this message in context: http://lucene.472066.n3.nabble.com/How-are-stored-Fields-Payloads-loaded-tp2598739p2598739.html
Sent from the Lucene - Java Users mailing list archive at Nabble.com.

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