lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Naber (JIRA)" <>
Subject [jira] Commented: (LUCENE-523) FSDirectory.openFile(String) causes ClassCastException
Date Fri, 11 May 2007 21:04:17 GMT


Daniel Naber commented on LUCENE-523:

The issue at Jackrabbit is closed, so I guess this can be closed too? I'll do so unless someone

> FSDirectory.openFile(String) causes ClassCastException
> ------------------------------------------------------
>                 Key: LUCENE-523
>                 URL:
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: Store
>    Affects Versions: 1.9, 2.0.0
>         Environment: Lucene 1.9.1
>            Reporter: Eric Isakson
> When you call FSDirectory.openFile(String) you get a ClassCastException since FSIndexInput
is not an
> The workaround is to reimplement using openInput(String). I personally don't need this
to be fixed but wanted to document it here in case anyone else runs into this for any reason.
> The reason I'm calling this is that I have a requirement on my project to create read
only indexes and name the index segments consistently from one build to the next. So, after
creating and optimizing the index, I rename the files and rewrite the segments file. It would
be nice if I had an API that would allow me to say "I only want one segment and I want its
name to be 'foo'". For instance IndexWriter.optimize(String segmentName)

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