Seems like a few of us are been plagued by having exact searches but not 
related searches. However, I was sort of curious why the 
SearchQuerySet.autocomplete was able to do what I intended to do, I tried 
to compile them both together. 

So, try to first set up a working autocomplete. After which, you can set 
this up (With Custom S

class SearchFacetedSearchView(FacetedSearchView):
    template_name = "search_faceted.html"
    queryset = SearchQuerySet()
    form_class = FacetedSearchForm
    facet_fields = ['the_field_wanted']

    def get_context_data(self, **kwargs):
        context = super(SearchFacetedSearchView, 
self).get_context_data(**kwargs)
                context = {
            "object_list": 
SearchQuerySet().autocomplete(the_field_wanted=self.request.GET.get('q', 
'')),
            "query": True,
        }
        return context


This essentially let you use "object_list" and {% if query %} in a 
"hacky-way". Definitely not the best method out there but it solves the 
problem temporarily

-- 
You received this message because you are subscribed to the Google Groups 
"django-haystack" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-haystack+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to