solrpy currently lacks a way to determine exactly what (encoded) query was
sent to the SOLR server and what response was received from th SOLR server.
This is very inconvenient when developing against a potentially misbehaving
SOLR server.
Attached here is a simple patch that adds a "debug" flag parameter to
SolrConnection constructor.
Usage:
conn = solr.SolrConnection('http://localhost:8080/solr/', debug=True)
From then on, at each request passing through conn, solrpy will log at INFO
level (using the logging module) both the passed in, encoded parameters and
the resulting XML, making it easier to determine where a bug lies.
Original issue reported on code.google.com by shywolf9...@gmail.com on 4 Feb 2010 at 10:03
Original issue reported on code.google.com by
shywolf9...@gmail.com
on 4 Feb 2010 at 10:03Attachments: