Hello,
I am beginning to use the python client from the subversion
repository. Everything works well except if I want to pass a parameter
with a dot to the search method of the SolrConnection class (for
example facet.field). The solution I have is to replace the "." by
"__dot__" ( facet__dot__field ) and then reverse this in the search
method. The new method look like this :
def search(self, **params):
for key in params.keys():
params[key.replace('__dot__', '.')] = params.pop(key)
request=urllib.urlencode(params, doseq=True)
try:
rsp = self.doPost(self.solrBase+'/select', request, self.formheaders)
data = rsp.read()
finally:
if not self.persistent: self.conn.close()
return data
Is there a better solution ?
Eric.