On Monday 10 March 2008 19:34:09 Eric Falconnier wrote: > 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 :
You may want to take a look at SOLR-216 (http://issues.apache.org/jira/browse/SOLR-216). I have been using this code in production for a while with minor modifications, and so far it has worked very well. It allows you to substitute underscores for dots, e.g. hl_fl=... The code, as posted in the JIRA, has a few minor issues with UTF-8 encoding, but these are easily fixed (see the comments, and also a recent post to the list). I probably will propose a revised version soon. Best regards - Christian