Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • MySQL database must already exist (e.g. "umlsdb").  
    • If no data exists in the database, this tool will clear the indexes.
    • Otherwise, it will index the available data.
  • MySQL database connection parameters must be defined in the properties file specified by "run.config.umls".
  • The file system directory specified by the "hibernate.search.default.indexBase" in the properties file specified by run.config.umls must exist.
  • Tomcat server must be stopped (i.e., "tstop"), and then restarted after reindex is complete ("tstart"), UNLESS admin tool is being used to rebuild all indexes via a REST call to the server

Details

This tool is used to rebuild Lucene indexes for objects indexed by the system.

...

Sample command line call of the admin tool to rebuild all indexes:

 

Code Block
# stop the server
% service tomcat7 stop

% cd ~/code/admin/lucene
% mvn install -PReindex -Drun.config.umls=/home/ec2-tomcat/config/config.properties
 
# start the server
% service tomcat7 start

 

Sample command line call of the admin tool to rebuild all indexes via a REST call to the server (here the run.config.ts is used to specify the base.url parameter, which is where the server is running):

 

Code Block
% cd ~/code/admin/lucene
% mvn install -PReindex -Drun.config.umls=/home/ec2-tomcat/config/config.properties -Dserver=true

 

 

Sample command line call of the admin tool to reindex only certain data types:

Code Block
# stop the server
% service tomcat7 stop

# Re-indexes only map records and tracking records
% cd ~/code/admin/lucene
% mvn install -PReindex -Drun.config.umls=/home/ec2-tomcat/config/config.properties -Dindexed.objects=ConceptJpa

# start the server
% service tomcat7 start

 

 

Sample Eclipse run configuration to rebuild all indexes:

...