Hi, I've been reading the docs from
http://mezzanine.jupo.org/docs/search-engine.html
There is a note saying: "search method returns a Django queryset", thus I
should chain a filter() or order_by().
Product.objects.search(query).filter(vendor__id=66).order_by("-publish_date").
I'm using mezzanine 3.0.9 and cartridge 0.9.2, and to me it looks like
SearchableManager.search is returning every time a sorted "all_results"
list.
This line of code:
all_results.extend(queryset.search(*args, **kwargs))
is transforming the queryset into a list.
Is there something I'm missing? How can I apply filter and order on a
queryset coming from search manager?
--
You received this message because you are subscribed to the Google Groups
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.