lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hoelzl, Thomas" <>
Subject lucene can't find segments file
Date Thu, 17 Apr 2008 13:22:58 GMT
Hi all!
I have some problems running my lucene application on linux (suse).
lucene can't find segments file. is the errormessage I get in the
I don't understand why it is trying to find a "segments" file. My
index-dir doesn't contain that particular file. 
It contains the following files.
master:/home/thomas/keywordsearch/etc # ls

  ..  _2.cfs  segments.gen  segments_9

I have checked the index using luke and it is good. In addition it works
on Windows.
Can anybody tell me why it is searching for a file called "segments"?
Where is my mistake?
The indexName points to /usr/local/jboss-3.2.7/server/default/conf/index
code where the exception is thrown:
 try {
          searcher = new IndexSearcher(indexName);      //create an
indexSearcher for our page
                                                        //NOTE: this
operation is slow for large
                                                        //indices (much
slower than the search itself)
                                                        //so you might
want to keep an IndexSearcher
        } catch (Exception e) {                         //any error that
happens is probably due
                                                        //to a
permission problem or non-existant
                                                        //or otherwise
corrupt index
        StackTraceElement[] es = e.getStackTrace();
                String s = "";
                for (int i = 0; i<es.length; i++)
                <p>ERROR opening the Index - contact sysadmin!</p>
                <p>Error message: <%=escapeHTML(e.getMessage())%></p>
                <p>Error message: <%=escapeHTML(s)%></p>
<%                error = true;                                  //don't
do anything up to the footer

Thanks for all help

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message