Move to VM lost search index

hi,
I just moved 1.6.5 to a VM, and in the process it lost the search index (all search terms return 0 items)

so I created and ran a “rebuild search index” task - it only indexes about 500 items of for 2790 assets

from folder view i can see all assets, but searches are limited to the 500 or so items

have tried clear cache, repeated restore, even tried 1.7beta (but don’t even get the option to restore the database there)

any advice would be welcome,

thanks, joseph

The rebuild of the search index takes 500 records per task. Just wait and it will pick up the next 500 records until is has indexed all of them

Also make sure that you have all indexing tasks setup again.

What you mean you don’t get the option to restore the database with Razuna 1.7? You have to reset the database and then you are being redirected to the first time wizard where you can then restore the database.

thanks,
it still wouldn’t index the next 500; i tried leaving it, i tried clicking rebuild index. in the end I altered the code to index 5000 items at a time - its in progress now and looking good

If this is the case, then it might stop because the lock file could not be removed. Once your indexing is done, please check if the lucene.lock file is removed. Located at /bluedragon/work/temp.

i couldn’t find the lucene.lock file and re-ran the index but still couldn’t find it in
/opt/razuna_tomcat_1_6_5/tomcat/webapps/razuna/WEB-INF/bluedragon/work/temp

Well that is a good sign. See the .lock file is being generated when the index runs and removed when it is done.

In other words, your indexing should work.