Open GoogleCodeExporter opened 8 years ago
The problem is that the 'fields' argument to SearchHandler.__call__ gets
renamed to 'fl'. So this would be fixed by inserting the following into that
method:
fields = params.pop('fl', fields)
Original comment by joel.nothman@gmail.com
on 28 Oct 2012 at 5:46
This monkey-patch works:
import solr
old_call = solr.core.SearchHandler.__call__
def new_call(self, q=None, fields=None, *args, **params):
print 'in new_call'
fields = params.pop('fl', fields)
return old_call(self, q, fields, *args, **params)
solr.core.SearchHandler.__call__ = new_call
Original comment by joel.nothman@gmail.com
on 1 Nov 2012 at 6:43
minus the print statement obviously...
Original comment by joel.nothman@gmail.com
on 1 Nov 2012 at 6:44
Original issue reported on code.google.com by
otor...@gmail.com
on 6 Apr 2011 at 9:44