Hi Kirill

On 24/11/2010, at 10:52 AM, kirillrdy wrote:

> 1) Does sphinx support :without => some_date_range ?

Sure - a filter is a filter, and can be either inclusive (:with) or exclusive 
(:without). There's no difference between the two beyond that.

> 2) How to get delta index to trigger on associations update?
> 
> eg post has many comments
> 
> class Post
> index do
>  comments.posted_at , :as => :comments_posted_at
> end
> end
> when I add or update comments I'd like delta indexing to trigger for
> post.

Add an after_save hook to your Comment model which sets the post delta to true, 
then saves the post. That should do the trick :)

Cheers

-- 
Pat

-- 
You received this message because you are subscribed to the Google Groups 
"Thinking Sphinx" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/thinking-sphinx?hl=en.

Reply via email to