No facets founded

14 views
Skip to first unread message

Yann Boisclair-Roy

unread,
Mar 26, 2012, 5:04:47 PM3/26/12
to django-haystack
Hi !

I've pass through the setup of haystack with django, which is
wonderful and easy ! My stuff is indexed, and I can retrieve it with
the search template (from the doc).

I'm getting problem with faceting. I've follow the documentation, and
I can't search with facets.

The fields are in solr, with the "_exact" postfix, and I get them
this:

from the urls.py where the facet routing is:
sqs = SearchQuerySet().facet('document')
print sqs.facet_counts()

Which gives in console:
{'fields': {'document': [('Internes', 2), ('Externes', 1)]}, 'dates':
{}, 'queries': {}}

But in the template it never pass the condition: {% if
facets.fields.document %}

It must be something I missed, but I just don't get it :/

Please help me ! Thanks !

Yann Boisclair-Roy

unread,
Mar 27, 2012, 10:27:49 AM3/27/12
to django-haystack
Founded it ! Simply forgot to change the routing for "/search" in the
main urls.py to fetch the custom one I made for solr.


On Mar 26, 5:04 pm, Yann Boisclair-Roy <yannboisclair...@gmail.com>
wrote:
Reply all
Reply to author
Forward
0 new messages