Using solrpy's raw query (that just returns a string without trying to
parse it), I am getting for
========
response = s.raw_query(q='*:*', rows='2', wt='xml', fl=('uid'))
print response
========
What's this 195 in front and 0 at the end? Would not they confuse XML parser?
========
$ ./test.py
195
<?xml version="1.0" encoding="UTF-8"?>
<response>
<lst name="responseHeader"><int name="status">0</int><int
name="QTime">21</int><lst name="params"><str name="fl">uid</str><str
name="q">*:*</str><str name="wt">xml</str><str
name="rows">2</str></lst></lst><result name="response"
numFound="645758" start="0"><doc><str
name="uid">yzs123</str></doc><doc><str
name="uid">root</str></doc></result>
</response>
0
========
I guess, one way to proceed would be to use raw_query, strip the
resulting string from those numbers before feeding to some XML parser.
On Thu, Sep 25, 2014 at 1:01 PM, Mike Lissner