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] [Commented] (LUCENE-3403) Term vectors missing after addIndexes + optimize
Date Fri, 26 Aug 2011 07:47:29 GMT

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

Simon Willnauer commented on LUCENE-3403:
-----------------------------------------

good catch Shai, Does this happen on 4.0 too? I don't think we have setHasVectors there anymore.
I am just wondering since you put 4.0 as a fix version.

> Term vectors missing after addIndexes + optimize
> ------------------------------------------------
>
>                 Key: LUCENE-3403
>                 URL: https://issues.apache.org/jira/browse/LUCENE-3403
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: core/index
>    Affects Versions: 3.3
>            Reporter: Shai Erera
>            Assignee: Shai Erera
>            Priority: Blocker
>             Fix For: 3.4, 4.0
>
>         Attachments: LUCENE-3403.patch
>
>
> I encountered a problem with addIndexes where term vectors disappeared following optimize().
I wrote a simple test case which demonstrates the problem. The bug appears with both addIndexes()
versions, but does not appear if addDocument is called twice, committing changes in between.
> I think I tracked the problem down to IndexWriter.mergeMiddle() -- it sets term vectors
before merger.merge() was called. In the addDocs case, merger.fieldInfos is already populated,
while in the addIndexes case it is empty, hence fieldInfos.hasVectors returns false.
> will post a patch shortly.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


Mime
View raw message