难道有人能举一个例子,说明如何利用属性,对全文检索结果进行过滤? 我在自己的网站上通过该辅导,但对于如何使用“灰色”。
For instance, 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 fulltext search on title & description, and filtering (based on drop-down lists, not free text) on category and color - what do I need to do? Can I use the forms and views that come with haystack?
感谢。