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:
Yonik Seeley 2007-02-17 23:47:04 +00:00
parent 304d6f86ff
commit a6f0f036ac
1 changed files with 2 additions and 2 deletions

View File

@ -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()