|
|
@ -49,7 +49,7 @@ def execShell(cmdstring, cwd=None, timeout=None, shell=True): |
|
|
|
return sub.communicate() |
|
|
|
return sub.communicate() |
|
|
|
|
|
|
|
|
|
|
|
length = 100 |
|
|
|
length = 100 |
|
|
|
for x in xrange(1, count / length + 1): |
|
|
|
for x in xrange(0, count / length + 1): |
|
|
|
y = x * length |
|
|
|
y = x * length |
|
|
|
cmd = 'curl --basic -u admin:admin "http://127.0.0.1:8983/solr/sodht/dataimport?command=full-import&wt=json&clean=false&commit=true&length=' + \ |
|
|
|
cmd = 'curl --basic -u admin:admin "http://127.0.0.1:8983/solr/sodht/dataimport?command=full-import&wt=json&clean=false&commit=true&length=' + \ |
|
|
|
str(length) + '&offset=' + str(y) + '"' |
|
|
|
str(length) + '&offset=' + str(y) + '"' |
|
|
|