...
- run.config.ts - 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. MapRecordJpa). If omitted, all indexes are rebuilt.
server - this (default false) flag indicates whether the mojo should be run in standalone mode or against a running server. A server check ensures the intended mode is the current case (e.g. if server is false, but the base.url specified in run.config.ts is running a server, then the mojo will fail - as well as the inverse where the server flag is true but a server is not running at base.url) true/false indicating whether to run the mojo through the server
Samples
Sample command line call of the admin tool to rebuild all indexes:
...
# stop the server % service tomcat7 stop # remove the index % /bin/rm -rf /var/lib/tomcat7/indexes/*ConceptJpa # rebuild the index % cd ~/code/admin/lucene % mvn install -PReindex -Drun.config.ts=/home/ec2-tomcat/config/config.properties -Dindexed.objects=ConceptJpa # start the server % service tomcat7 start |
References/Links
...