[ 
https://issues.apache.org/jira/browse/LUCENE-4719?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13639691#comment-13639691
 ] 

John Wang commented on LUCENE-4719:
-----------------------------------

Hi Andre:

   Michael is right, I had the same bug in my code :) 

   I think on the line: System.out.println(te.term().utf8ToString() + ": " + 
decodeInt(tp.getPayload().bytes, 0));

   Instead of passing 0 as the offset, change it to tp.getPayload().offset, 
your test should work.

-John
                
> Payloads per position broken
> ----------------------------
>
>                 Key: LUCENE-4719
>                 URL: https://issues.apache.org/jira/browse/LUCENE-4719
>             Project: Lucene - Core
>          Issue Type: Bug
>          Components: core/index
>    Affects Versions: 4.1
>            Reporter: André 
>            Assignee: Robert Muir
>             Fix For: 4.1.1
>
>         Attachments: PayloadsTestCase.java
>
>
> In 4.0 it worked. Since 4.1 getPayload() returns the same value for every 
> position of the same term. Additionally payloads stored on the term vector 
> (correct) may differ form payloads stored in the postings (wrong).

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

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

Reply via email to