If not, I can look into adding such a method. I already use a mostly functional version of this method for my own classes, it can probably be refitted into haystack.
On Tuesday, November 29, 2016 at 12:21:52 AM UTC+5:30, Anuvab Mohanty wrote: > > There are a lot of times when I just need to make sure that a result > exists and perform some action according to that, but I have to call > self.results.count() and check it's value. It seems like an unnecessary > extra query to me. Django's querysets solve this by using > queryset.exists() > <https://docs.djangoproject.com/en/1.10/ref/models/querysets/#django.db.models.query.QuerySet.exists>, > > does haystack have an equivalent method? > -- 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.