facet.missing bug fix, and added wt param to RequestHandler

59 views
Skip to first unread message

dnephin

unread,
Nov 20, 2010, 4:37:28 PM11/20/10
to solrpy
Hello,

I found a bug with the xml response parsing. When facet.missing is
set to true, there are tags that are returned without a name
attribute, which throws a KeyError.

I also added support for different wt types (json, python, other).
I've made these changes in a clone, and would like to submit them to
trunk.

30a80c55a1 - fixed facet.missing bug
c609b7fbc1 - added wt param

The clone is dnephin-solrpy. Please let me know if you feel something
needs to be changed before it is ready for trunk.

JB Lowe

unread,
Sep 29, 2013, 7:53:28 PM9/29/13
to sol...@googlegroups.com
I see this bug as well. At least, I *think* it's a bug!

e.g. the following fails with facet_missing in my Django app ("KeyError at /.../... 'name'), but works without it.

response = s.query(querystring, facet='true', facet_field=facetfields, facet_limit=500, facet_missing='true',  facet_mincount=1)

 I can't find the clone in GitHub. Has this been fixed? I can't find the issue on Google Code. I'll gladly create a bug report, and help with applying the fix, if someone can clarify the status of this issue.

Cheers!

Nagalakshmi Srirama

unread,
Jan 28, 2016, 4:20:21 PM1/28/16
to solrpy, dne...@gmail.com
Hi,
I am getting the same error. May I know what did you do to fix it?
Reply all
Reply to author
Forward
0 new messages