exclude objects from index

126 views
Skip to first unread message

bowlby

unread,
Jan 13, 2010, 9:29:25 AM1/13/10
to django-haystack
Is there a way of using a single field to indicate whether an object
should be searchable or not? I'd like to use a binary field
'published' or something a like.

thanks!

Daniel Lindsley

unread,
Jan 14, 2010, 8:37:46 PM1/14/10
to django-...@googlegroups.com
Bowlby,


You're looking for either the "get_queryset" or "should_update"
methods on the "SearchIndex" class. Both have descriptions in the docs
on http://haystacksearch.org/, under the "SearchIndex". I'd link to
them directly but don't have access to a browser at the moment.


Daniel

> --
> You received this message because you are subscribed to the Google
> Groups "django-haystack" group.
> To post to this group, send email to django-...@googlegroups.com.
> To unsubscribe from this group, send email to django-haysta...@googlegroups.com
> .
> For more options, visit this group at http://groups.google.com/group/django-haystack?hl=en
> .
>
>

Reply all
Reply to author
Forward
0 new messages