Hi Jim

I guess what you'll want to do is have a after_commit hook on your project 
model that updates the delta flags on all tasks for that project (which will in 
turn fire the delta callback for them). This will ensure Sphinx's data is close 
to up-to-date.

How many tasks are generally tied to a project?

-- 
Pat

On 18/11/2011, at 10:47 AM, Jim Ruther Nill wrote:

> Hi!
> 
> in my define_index block inside the Task model i have a where clause
> 
> where 'project.status != "closed"'
> 
> but everytime I change the project status, I have to reindex else the
> search results will be wrong.  Is there any better way to do this?  I have
> delayed delta indexing enabled for tasks.  I wonder if I also need to do
> this for projects.
> 
> Thanks!
> 
> -- 
> 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.

-- 
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