On 1/19/07, Emily Lynema <[EMAIL PROTECTED]> wrote:
I have a roller 2.1 installation. Our search function used to work
appropriately, but is no longer returning any results for terms I know
exist. As far as I know, we haven't made any configuration or code
changes that would impact search functionality.

I took a look at our roller_data/search-index directory, and I only see
2 files: segments and .index-inconsistent. It looks like the actual
index is missing, as our development install with functioning search has
several files named like _a.cfs.

The logs indicate an error creating the writer to the index:

INFO  2007-01-19 11:32:29,824 WriteToIndexOperation:run - Starting
search index operation
ERROR 2007-01-19 11:32:29,830 IndexOperation:beginWriting - ERROR
creating writer
INFO  2007-01-19 11:32:29,831 WriteToIndexOperation:run - Search index
operation complete

I checked write permissions, and the search-index directory should be
writeable by the user running our roller web application.

I tried to trace the index operations back through the code, and I think
the error might is caused by these lines in IndexOperation.java:

  try {
             writer = new IndexWriter(manager.getIndexDirectory(),
IndexManagerImpl.getAnalyzer(), false);
         } catch (IOException e) {
             mLogger.error("ERROR creating writer");
         }

But I'm just not familiar enough with the code to know what the problem
is. Any ideas?

Sounds like you have a corrupted search index and Roller is failing to
create a new index due to... something, it's hard to tell what. I wish
that logger line was:

             mLogger.error("ERROR creating writer",   e   );

I'm not sure what the bug is, but you should be able to work around it
by stopping Roller, deleting the contents of your search index
directory and then restarting, Roller will then rebuild your search
index and search should start working again.

- Dave

Reply via email to