Closed GoogleCodeExporter closed 9 years ago
Hmmm... I think It is Xapian python binding limitation. I''ll try to do some
research
about it.
Original comment by daevaorn
on 10 Oct 2009 at 2:33
What version of python, djapian, xapian and python-binding do you use?
Original comment by daevaorn
on 11 Oct 2009 at 1:28
python 2.6.2
djapian 2.3
xapian python-bindings: 1.0.7
I am using debian ubuntu package of xapian and python bindings, just in case if
you
need this information.
Also, if there is any work-around to this problem by changing the above
versions, do
let me know.
Original comment by saraf.saurabh
on 11 Oct 2009 at 6:02
I'm using almost the same configuration and cannot reproduce such error
Original comment by daevaorn
on 11 Oct 2009 at 6:09
Thanks. So I guess this should be a problem on my side. Will update if I have
any news.
Original comment by saraf.saurabh
on 11 Oct 2009 at 6:12
I still cant figure out the problem. I believe its something related to this
ticket:
http://code.djangoproject.com/ticket/7813
However I have found a quick work-around. Slicing the queryset does the trick:
result = complete_indexer.search(query).prefetch()
request.session['search_result'] = result[0:]
Original comment by saraf.saurabh
on 12 Oct 2009 at 6:18
Original comment by daevaorn
on 13 Dec 2009 at 9:06
Original issue reported on code.google.com by
saraf.saurabh
on 10 Oct 2009 at 2:16