Page 1 of 1

Re index

PostPosted: Thu May 13, 2010 7:49 pm
by johnjhufnagle
Hi,

Is there a way to force a re-index of all images through the command line?
Saw some mention of it on the wiki but couldn't get it to work:

from wiki:

./omero [admin] search reindex # Admin only; Long call!
./omero [admin] search reset-index # Starts reindexing; slow!
./omero [admin] search set-frequency # Cron job format
./omero [admin] search set-batch-size# Number indexed each time.
# and
./omero search your query here # cli


THanks
John

Re: Re index

PostPosted: Fri Jun 04, 2010 8:53 am
by jmoore
My apologies, John. I was almost sure I had responded to this.

First of all, can you confirm that you got the list of commands from https://trac.openmicroscopy.org.uk/omero/ticket/1007? That ticket hasn't been started, much less finished yet, so we won't be able to help you out there.

The previous instructions for doing the reindexing were on https://trac.openmicroscopy.org.uk/omero/wiki/OmeroSearch#Informationfordevelopersandsystemadministrators. These were slightly out of date and have now been updated:

Code: Select all
If you need to re-index your database, stop your server, and:

    * (Optionally) Delete the /OMERO/FullText directory
    * Delete or set to 0 the entry from the configuration table: update configuration set value = 0 where name like 'PersistentEventLogLoader%';
    * If it is necessary to force re-indexing, use:

      cd $OMERO_HOME
      CLASSPATH=etc:`find lib/server | xargs | sed 's/ /:/g'`
      java -Dlog4j.configuration=log4j-cli.properties -Xmx512M ome.services.fulltext.Main full

or alternatively for just particular types, ...

      java -Dlog4j.configuration=log4j-cli.properties -Xmx512M ome.services.fulltext.Main reindex ome.model.core.Image

This functionality is still being tested, but we'll be made more available in future versions.


Hope that helps,
~Josh

Re: Re index

PostPosted: Tue Jun 08, 2010 3:55 pm
by johnjhufnagle
Thanks Josh! I'll give those directions a try.
John