Can someone show me an example of how to filter full-text search results using django-haystack using attributes? I looked through the tutorial on my website but am still sure how to use the haystack.
For example, let's say I have a class Product:
class Product(models.Model):
title = models.CharField(max_length=200)
description = models.TextField()
category = models.CharField(max_length=10)
color = models.CharField(max_length=10)
If I want to provide full-text search by name and description, and filtering (based on drop-down lists, not free text) by category and color - what should I do? Can I use forms and views that come with a stack of hay?
Thank.
source
share