lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jason Rutherglen (JIRA)" <>
Subject [jira] Commented: (LUCENE-1312) InstantiatedIndexReader does not implement getFieldNames properly
Date Wed, 25 Jun 2008 01:18:45 GMT


Jason Rutherglen commented on LUCENE-1312:

I have an exception but it's different and not sure what it's related to.  I need more debug
code to see the details, if I can reproduce it.  I am assuming it is related to InstantiatedIndexReader,
given it would be difficult to make happen with the regular IndexReader code.  Fails on the
last line of the code given.  Probably something to do with InstantiatedIndexReader and deleted
docs differing somehow with other data SegmentMerger is obtaining.


org.apache.lucene.index.CorruptIndexException: doc counts differ for segment _0: fieldsReader
shows 5 but segmentInfo shows 20
	at org.apache.lucene.index.SegmentReader.initialize(
	at org.apache.lucene.index.SegmentReader.get(
	at org.apache.lucene.index.SegmentReader.get(
	at org.apache.lucene.index.DirectoryIndexReader$1.doBody(
	at org.apache.lucene.index.SegmentInfos$

RAMDirectory ramDirectory = new RAMDirectory();
IndexWriter indexWriter = new IndexWriter(ramDirectory, false, system.getDefaultAnalyzer(),
indexWriter.setMergeScheduler(new SerialMergeScheduler());
Directory.copy(ramDirectory, directory, true);
initialIndexReader =, indexDeletionPolicy);


> InstantiatedIndexReader does not implement getFieldNames properly
> -----------------------------------------------------------------
>                 Key: LUCENE-1312
>                 URL:
>             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,
> 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:
For additional commands, e-mail:

View raw message