Update full.py

pull/109/head
midoks 6 years ago
parent 446cf3cf8e
commit 07c4df8dc5
  1. 5
      plugins/solr/script/full.py

@ -51,7 +51,6 @@ def execShell(cmdstring, cwd=None, timeout=None, shell=True):
for x in xrange(1, count / 10 + 1): for x in xrange(1, count / 10 + 1):
y = x * 10 y = x * 10
cmd = 'curl --basic -u admin:admin "http://176.122.138.146:8983/solr/sodht/dataimport?command=full-import&wt=json&clean=false&commit=true&length=10&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=10&offset=' + \
str(y) + '"'
print execShell(cmd) print execShell(cmd)

Loading…
Cancel
Save