Skip to content

Commit 4d6d485

Browse files
author
eberhardtj
committed
Increase version and add version to usage information.
1 parent cfa54c8 commit 4d6d485

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

scripts/ParallelPost.groovy

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
*/
1919
@GrabResolver(name='jitpack', root='https://jitpack.io')
2020
@Grab('org.metafacture:metafacture-xml:5.0.0')
21-
@Grab('com.github.eberhardtj:metafacture-solr-plugin:v0.1.1')
21+
@Grab('com.github.eberhardtj:metafacture-solr-plugin:v0.1.2')
2222
@Grab('org.slf4j:slf4j-api:1.7.25')
2323
@Grab('org.slf4j:slf4j-simple:1.7.25')
2424
import groovy.cli.picocli.CliBuilder
@@ -30,6 +30,8 @@ def summary = '\n' + 'Posts Apache Solr index updates (in XML) to a Solr Server.
3030
'\n' +
3131
'\n' +
3232
'Example: groovy ParallelPost.groovy -u "http://localhost:8983/solr/" -c "demo"' +
33+
'\n' +
34+
'Version: 0.1.2' +
3335
'\n'
3436

3537
def cli = new CliBuilder(usage:'ParallelPost [-ibdth] -u URL -c CORE', header: '\nOptions:', footer: summary)
@@ -38,7 +40,7 @@ cli.with {
3840
u argName: 'url', longOpt: 'url', 'Solr Host URL', type: String.class, required: true
3941
c argName: 'core', longOpt: 'core', 'Core name', type: String.class, required: true
4042
b argName: 'num', longOpt: 'batch-size', 'Batch size', type: Integer.class, defaultValue: '10000'
41-
d argName: 'num', longOpt: 'delay', 'Delay before a commit happens (in ms)', type: Integer.class, defaultValue: '60000'
43+
d argName: 'num', longOpt: 'delay', 'Delay before a commit happens (in ms)', type: Integer.class, defaultValue: '-1'
4244
t argName: 'num', longOpt: 'threads', 'Number of concurrent threads', type: Integer.class, defaultValue: '1'
4345
h longOpt: 'help', 'Show usage information'
4446
}

0 commit comments

Comments
 (0)