This appears to be a bug in the Xapian backend. But, there seems to be
a very easy solution.
Open the xapian_backend.py file, go to line 337, where you will find
this:
if len(registered_models) > 0:
narrow_queries.append(
' '.join(['django_ct:%s' % model for model in
registered_models])
)
This doesn't work, but if you simply change the .append to .add, it
still won't work. The solution is to do both methods, like this:
if len(registered_models) > 0:
try:
narrow_queries.append(
' '.join(['django_ct:%s' % model for model in
registered_models])
)
except AttributeError:
narrow_queries.add(
' '.join(['django_ct:%s' % model for model in
registered_models])
)
This fixes it for me, and faceting is working (more or less... some
problems with ForeignKeys). As always with Python, note the
indenting.
I have fixed this quickly in the train this morning, and this is
provided on an as-is basis. There is absolutely no warranty.