Apache Lucene open-source search software
fix typo + allow multiple param values - Wade Leftwich
Yonik Seeleya6f0f036acc7
diff --git a/client/python/solr.py b/client/python/solr.pyindex ee68e6762c7..dc136b8e51b 100644--- a/client/python/solr.py+++ b/client/python/solr.py@@ -158,12 +158,12 @@ class SolrConnection:if optimize: xstr='<optimize'if not waitSearcher: #just handle deviations from the defaultif 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()