Yann Boisclair-Roy
unread,Mar 26, 2012, 5:04:47 PM3/26/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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 !