lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wgggfiy <wuqiu....@qq.com>
Subject what is the offsets and payload in DocsAndPositionsEnum for ??
Date Sun, 18 Nov 2012 17:09:09 GMT
I'm now studying lucene 4.0. 
1, what is the startOffset and endOffset for ? is there a code example ?
2, what is payload ? I know just a little about it, and it can be used for
things like font weight, or XML enclosing tag.
3, I have a item like (lucene, 350, 450, 33.2, 2), where 350,450 is the 
offset of the term 'lucene', and 33.2 is a score, and 2 is some id, my 
question is how I can make it indexed ?
my first idea is to relized my own posting list format, but is it possible
to make it with the startOffset, endOffset and payload ?
thx.

wgggfiy



--
View this message in context: http://lucene.472066.n3.nabble.com/what-is-the-offsets-and-payload-in-DocsAndPositionsEnum-for-tp4020933.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


Mime
View raw message