Re: Term Positions added to one document forward

2012-10-30 Thread Ivan Vasilev
Thanks Simon! On 29.10.2012 г. 21:38, Simon Willnauer wrote: you should call currDocsAndPositions.nextPosition() before you call currDocsAndPositions.getPayload() payloads are per positions so you need to advance the pos first! simon On Mon, Oct 29, 2012 at 6:44 PM, Ivan Vasilev wrote: Hi G

Re: Term Positions added to one document forward

2012-10-29 Thread Simon Willnauer
you should call currDocsAndPositions.nextPosition() before you call currDocsAndPositions.getPayload() payloads are per positions so you need to advance the pos first! simon On Mon, Oct 29, 2012 at 6:44 PM, Ivan Vasilev wrote: > Hi Guys, > > I use the following code to index documents and set Pa

Term Positions added to one document forward

2012-10-29 Thread Ivan Vasilev
Hi Guys, I use the following code to index documents and set Payloads to term positions: public class TestPayloads_ { private static final String INDEX_DIR = "E:/Temp/Index"; public static void main(String[] args) throws Exception { IndexWriterConfig iwc = new Ind