mirror of https://github.com/apache/lucene.git
fix typo + allow multiple param values - Wade Leftwich
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@508826 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
304d6f86ff
commit
a6f0f036ac
|
@ -158,12 +158,12 @@ class SolrConnection:
|
|||
if optimize: xstr='<optimize'
|
||||
if not waitSearcher: #just handle deviations from the default
|
||||
if not waitFlush: xstr +=' waitFlush="false" waitSearcher="false"'
|
||||
else: xstr += 'waitSearcher="false"'
|
||||
else: xstr += ' waitSearcher="false"'
|
||||
xstr += '/>'
|
||||
return self.doUpdateXML(xstr)
|
||||
|
||||
def search(self, **params):
|
||||
request=urllib.urlencode(params)
|
||||
request=urllib.urlencode(params, doseq=True)
|
||||
try:
|
||||
rsp = self.doPost(self.solrBase+'/select', request, self.formheaders)
|
||||
data = rsp.read()
|
||||
|
|
Loading…
Reference in New Issue