mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-18 23:45:52 +08:00
Update full.py
This commit is contained in:
@@ -48,9 +48,9 @@ def execShell(cmdstring, cwd=None, timeout=None, shell=True):
|
|||||||
|
|
||||||
return sub.communicate()
|
return sub.communicate()
|
||||||
|
|
||||||
|
length = 100
|
||||||
for x in xrange(1, count / 100 + 1):
|
for x in xrange(1, count / length + 1):
|
||||||
y = x * 100
|
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=100&offset=' + \
|
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) + '"'
|
str(y) + '"'
|
||||||
print execShell(cmd)
|
print execShell(cmd)
|
||||||
|
|||||||
Reference in New Issue
Block a user