Update full.py

This commit is contained in:
midoks
2019-08-06 22:49:37 +08:00
parent a13e878d03
commit 2635df4708
+2 -2
View File
@@ -51,6 +51,6 @@ def execShell(cmdstring, cwd=None, timeout=None, shell=True):
length = 100
for x in xrange(1, count / length + 1):
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=' + length + '&offset=' + \
str(y) + '"'
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) + '"'
print execShell(cmd)