[
https://issues.apache.org/jira/browse/LUCENE-1454?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12647961#action_12647961
]
Andrew Zhang commented on LUCENE-1454:
--------------------------------------
After looking at the source code of Luke.java, ~Ln 800:
fn = ir.getFieldNames(IndexReader.FieldOption.ALL);
if (fn.size() == 0) {
errorMsg("Invalid or corrupted index.");
return;
}
It seems that normal empty index will be reported as "Invalid or corrupted
index".
I tried to create an empty index, and luke prompted "Invalid or corrupted
index" as well.
Thanks for your time, Michael!
> Corrupted index produced by lucene 2.4
> --------------------------------------
>
> Key: LUCENE-1454
> URL: https://issues.apache.org/jira/browse/LUCENE-1454
> Project: Lucene - Java
> Issue Type: Bug
> Components: Index
> Affects Versions: 2.4
> Reporter: Andrew Zhang
> Attachments: index.zip
>
>
> Hi,
> I found corrupted index produced by lucene-2.4. I can't find a way to
> reproduce it. My machine was shutdown abnormally when the application was
> running.
> The corrupted index is attached. Would anyone please take a look? Thanks a
> lot!
> Environment: Windows XP, Service Pack 2
--
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]