18
18
*/
19
19
@GrabResolver (name = ' jitpack' , root = ' https://jitpack.io' )
20
20
@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 ' )
22
22
@Grab (' org.slf4j:slf4j-api:1.7.25' )
23
23
@Grab (' org.slf4j:slf4j-simple:1.7.25' )
24
24
import groovy.cli.picocli.CliBuilder
@@ -30,6 +30,8 @@ def summary = '\n' + 'Posts Apache Solr index updates (in XML) to a Solr Server.
30
30
' \n ' +
31
31
' \n ' +
32
32
' Example: groovy ParallelPost.groovy -u "http://localhost:8983/solr/" -c "demo"' +
33
+ ' \n ' +
34
+ ' Version: 0.1.2' +
33
35
' \n '
34
36
35
37
def cli = new CliBuilder (usage :' ParallelPost [-ibdth] -u URL -c CORE' , header : ' \n Options:' , footer : summary)
@@ -38,7 +40,7 @@ cli.with {
38
40
u argName : ' url' , longOpt : ' url' , ' Solr Host URL' , type : String . class, required : true
39
41
c argName : ' core' , longOpt : ' core' , ' Core name' , type : String . class, required : true
40
42
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 '
42
44
t argName : ' num' , longOpt : ' threads' , ' Number of concurrent threads' , type : Integer . class, defaultValue : ' 1'
43
45
h longOpt : ' help' , ' Show usage information'
44
46
}
0 commit comments