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 16:15:45 GMT

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

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

bq. Is there an easy way to add a InstantiatedIndexWriter.addIndexes(IndexReader[] readers)
method? Seems doable with the InstantiatedIndex(IndexReader sourceIndexReader) constructor
however I want to me able to merge another IndexReader in.

It's doable. The simplest solution I can think of is to reconstruct all the documents in one
single enumeration of the source index and then add them to the writer. I'm however not certain
this is the best way nor if InstantiatedIndexWriter is the place for the code. 

I think it should be discussed in a new issue.

> 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