You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "britta weber (JIRA)" <ji...@apache.org> on 2014/02/14 00:54:19 UTC

[jira] [Updated] (LUCENE-5444) offsets in MemoryIndex broken when adding field with more than once

     [ https://issues.apache.org/jira/browse/LUCENE-5444?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

britta weber updated LUCENE-5444:
---------------------------------

    Attachment: LUCENE-5444.patch

This patch includes a small test which compares the term vectors from MemoryIndex with those from RAMDirectory. It fails for the offsets. I also added a crude fix for MemoryIndex.

> offsets in MemoryIndex broken when adding field with more than once
> -------------------------------------------------------------------
>
>                 Key: LUCENE-5444
>                 URL: https://issues.apache.org/jira/browse/LUCENE-5444
>             Project: Lucene - Core
>          Issue Type: Bug
>          Components: core/index
>    Affects Versions: 4.6.1
>            Reporter: britta weber
>              Labels: easyfix
>             Fix For: 4.7
>
>         Attachments: LUCENE-5444.patch
>
>   Original Estimate: 168h
>  Remaining Estimate: 168h
>
> When fields with the same name are added more than once to MemoryIndex, the offsets of the previous additions of the field do not seem to be taken into account. As a result, MemoryIndex cannot be used for example with the vector highlighter. 



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

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