Versions Compared

Key

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

...

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

 

Code Block
# stop the server
% service tomcat7 stop

# change the value of config.properties to match what is on your server; see README.txt for details
% 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 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

 

...