[ 
https://issues.apache.org/jira/browse/LUCENENET-62?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jeff updated LUCENENET-62:
--------------------------

    Attachment: IndexReader.patch

This patch checks to see if the directory exists before it checks the Index. If 
the directory doesn't exists, it returns false. 

if (System.IO.Directory.Exists(directory.FullName))
{
        return 
SegmentInfos.GetCurrentSegmentGeneration(System.IO.Directory.GetFileSystemEntries(directory.FullName))
 != -1;
}
else
{
        return false;
}

> IndexReader.IndexExists() Fails if directory doesn't exists.
> ------------------------------------------------------------
>
>                 Key: LUCENENET-62
>                 URL: https://issues.apache.org/jira/browse/LUCENENET-62
>             Project: Lucene.Net
>          Issue Type: Bug
>            Reporter: Jeff
>            Priority: Minor
>         Attachments: IndexReader.patch
>
>
> There is no check to see if the Directory Exists before it checks for the 
> index files, it just throws an error.

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

Reply via email to