Versions Compared

Key

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

...

  • run.config.tumls - the standard configuration file specified as a -D parameter
  • indexed.objects - optional parameter that allows a comma-separated list of objects to reindex (e.g. ConceptJpa).  If omitted, all indexes are rebuilt.

  • server - true/false indicating whether to run the mojo through the server 

...

Sample Instructions

Sample command line call of the admin tool to rebuild all indexes:. This is generally what we want to do after a DB refresh. Check the relevant README.txt for details.

 

Code Block
# stop the server
% service tomcat7 stop

# remove the 
%indexes
/bin/rm -rf /local/content/MEME/MEME5/ncim/data/indexes*

# change the value of config.properties to match what is on your server
cd ~/code/admin/lucene
% mvn install -PReindex -Drun.config.umls=/home/ec2-tomcatmeme_work_local/ncim/config/config.properties
 

# give it some reasonable permissions
chown -R 777 /local/content/MEME/MEME5/ncim/data/indexes
  
# 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,TrackingRecordJpa

# start the server
% service tomcat7 start

 

...