Clearing out the sakai search can be tricky untill you deivse a process to do this. I've actually had to do this a number of times lately on the test instance of sakai we have up and running, so its about time that I jot something down so I don't have to re-learn it each time.
Short background. There are a few things that fall into play here when dealing with the search in sakai. The database side of search which keeps track of what nodes are doing what etc. and also the actual file system side of things which stores the indexes and segment chunks. Both of these need to be kicked when doing a full cleaning of search.
So here is my short list of steps to take when cleaning out and starting sakai search anew.
rm -rf/sakai/indexwork/* rm -rf/searchjournal/* - clear out these db tables
search_journal
Search_node_status
search_transactions
Now you should be able to fire up your appservers and perform an entire search rebuild to guarantee a fresh search base for your sakai.
Posted by Kevin Foote in sakai on July 25, 2008

