export LDOC_HOME=/LogicalDOC
export LUCENE_VERSION=5.5.3
export OLDINDEX1=
export OLDINDEX2=
export NEWINDEX=


java -cp $LDOC_HOME/tomcat/webapps/ROOT/WEB-INF/lib/lucene-core-$LUCENE_VERSION.jar:LDOC_HOME/tomcat/webapps/ROOT/WEB-INF/lib/lucene-misc-$LUCENE_VERSION.jar org/apache/lucene/misc/IndexMergeTool $NEWINDEX $OLDINDEX1 $OLDINDEX2