On 1/24/07, Emily Lynema <[EMAIL PROTECTED]> wrote:
After stopping Roller, deleting the contents of the search-index
directory, and restarting Roller, the search is only partially working.
Some searches return appropriate results, while others yield 0 results
when valid results exist. Often, a search for a term returns 1 or 2
recent results, but is missing other earlier results (using Google
search for comparison).
I tried to find a common denominator for results that *are* being
returned, generally more recent entries are better indexed. But I have
also seen cases where entries were returned that *didn't* contain the
search term.
There are no errors to indicate any problems in the roller logs.
Do you see something like this in the log?
INFO 2007-01-24 10:30:21,356 IndexManagerImpl:<init> - search enabled: true
INFO 2007-01-24 10:30:21,357 IndexManagerImpl:<init> - index dir:
/Users/dave/roller_data/search-index
INFO 2007-01-24 10:30:21,423 IndexManagerImpl:<init> - Index was
inconsistent. Rebuilding index in the background...
Sounds like a corrupted index? But I'm suspicious of it happening right
on the heels of being created in the first place. Do I have to stop
Roller before deleting the contents of search-index/ in order to force
Roller to create a new index?
As long as the search index is empty when Roller starts, it should do
a rebuild. The rebuild may take a little time, depending on how many
entries you have. You should see an INFO level message in the log when
the rebuild is complete "Completed rebuilding index for all users
in..."
I wonder if something is preventing the rebuild from completing.
- Dave