lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Karl Wettin (JIRA)" <j...@apache.org>
Subject [jira] Commented: (LUCENE-1312) InstantiatedIndexReader does not implement getFieldNames properly
Date Thu, 26 Jun 2008 15:17:45 GMT

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

Karl Wettin commented on LUCENE-1312:
-------------------------------------

bq. Because the patch looks like a mess with the various changes I copied and pasted the alterations
to InstantiatedIndexReader to allow the following code which works. Basically saving a copy
of normsByFieldNameAndDocumentNumber into the OceanInstantiatedIndexReader fixes the problem.

I haven't had time to look in to why you need to extend the code, but notice that InstantiatedIndexWriter
creates a new byte[] on commit so your copy of the norms will be out of sync with the index
unless you also update it at that point. There might be more to this than I can think of right
now.

Any other problems with the patch? I'm ready to commit it.

> InstantiatedIndexReader does not implement getFieldNames properly
> -----------------------------------------------------------------
>
>                 Key: LUCENE-1312
>                 URL: https://issues.apache.org/jira/browse/LUCENE-1312
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: contrib/*
>            Reporter: Jason Rutherglen
>            Assignee: Karl Wettin
>         Attachments: lucene-1312.patch, lucene-1312.patch, lucene-1312.patch, lucene-1312.patch,
lucene-1312.patch
>
>
> Causes error in org.apache.lucene.index.SegmentMerger.mergeFields

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


Mime
View raw message