We're Hiring!

Re index

General and open developer discussion about using OMERO APIs from C++, Java, Python, Matlab and more! Please new questions at https://forum.image.sc/tags/omero
Please note:
Historical discussions about OMERO. Please look for and ask new questions at https://forum.image.sc/tags/omero

If you are having trouble with custom code, please provide a link to a public repository, ideally GitHub.

Re index

Postby johnjhufnagle » Thu May 13, 2010 7:49 pm

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
johnjhufnagle
 
Posts: 34
Joined: Tue Dec 15, 2009 8:50 pm

Re: Re index

Postby jmoore » Fri Jun 04, 2010 8:53 am

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
User avatar
jmoore
Site Admin
 
Posts: 1591
Joined: Fri May 22, 2009 1:29 pm
Location: Germany

Re: Re index

Postby johnjhufnagle » Tue Jun 08, 2010 3:55 pm

Thanks Josh! I'll give those directions a try.
John
johnjhufnagle
 
Posts: 34
Joined: Tue Dec 15, 2009 8:50 pm


Return to Developer Discussion

Who is online

Users browsing this forum: Google [Bot] and 0 guests