lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Simon Willnauer (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (LUCENE-5444) offsets in MemoryIndex broken when adding field with more than once
Date Fri, 14 Feb 2014 13:51:19 GMT

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

Simon Willnauer updated LUCENE-5444:
------------------------------------

    Attachment: LUCENE-5444.patch

I ran the tests and found some bugs - the actual value to initialize the offsetGap is 1 rather
than 0 - I also fixed the MockAnalyzer to pull the super.getOffsetGap() if it is not set so
it will always get the default we use. I also added a changes entry and will commit in a bit.

> 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
>            Assignee: Simon Willnauer
>            Priority: Minor
>              Labels: easyfix
>             Fix For: 5.0, 4.7
>
>         Attachments: LUCENE-5444.patch, LUCENE-5444.patch, LUCENE-5444.patch, 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


Mime
View raw message