lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sascha Sadat-Guscheh (JIRA)" <>
Subject [jira] Commented: (LUCENE-523) FSDirectory.openFile(String) causes ClassCastException
Date Sun, 19 Mar 2006 21:33:59 GMT
    [ ] 

Sascha Sadat-Guscheh commented on LUCENE-523:

i run into this problem when using the jackrabbit jcr implementation. any ideas for a workaround?

> FSDirectory.openFile(String) causes ClassCastException
> ------------------------------------------------------
>          Key: LUCENE-523
>          URL:
>      Project: Lucene - Java
>         Type: Bug
>   Components: Store
>     Versions: 1.9, 2.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.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message