Open GoogleCodeExporter opened 9 years ago
This is due to lines 1034-1037 in solr/core.py efe41f9275a0, where any named
list structure is loaded into a Python dict. Named Lists are unlike dicts in
that they may have multiple values for the same key and -- at least for the
purposes of representation as XML -- are ordered.
So here are possible solutions for solrpy:
* Always load named lists (<lst>) into some new container, which by default
acts like a dict with single values, but has additional functions to get all
values for a particular name. This will make the current functionality a bit
less efficient.
* Specially handle the spellcheck response and other cases that require
multivalue support. Or vice-versa.
Original comment by joel.nothman@gmail.com
on 28 Oct 2012 at 4:56
Original issue reported on code.google.com by
sylvain....@gmail.com
on 19 Oct 2012 at 9:54Attachments: