Hi Canvas

I've merged a lot of what Ed Hickey has done in his fork into the main  
version of Thinking Sphinx, so I don't know if you want to switch to  
that or not. Either way, the datetime deltas work in the same fashion  
in both: You set a threshold, and anything edited or added within that  
timeframe is considered part of the delta index. So, if the threshold  
is one day, then as long as there's been changes within the last 24  
hours, there will be items in the delta index. Running the main index  
task will mean they're in both core and delta indexes - it doesn't  
remove them from delta, as it doesn't have a reference point for that.

You want to be running thinking_sphinx:index:delta at roughly the same  
timeframe as your threshold. So, if it's every day, run it once a day,  
maybe twice. Your main index task, in that kind of situation, perhaps  
only needs to be run weekly.

If you want things to be in the index as soon as possible, though,  
then this isn't the best delta approach for you. You'll need to either  
go with the default setup, or try the delayed_job approach (read all  
emails in this thread):
http://groups.google.com/group/thinking-sphinx/browse_thread/thread/af6723f764329a41

Hope this helps.

Cheers

-- 
Pat

On 03/01/2009, at 1:58 AM, Canvas wrote:

>
> Hi there guys,
>
> I trid pid_file and bin_path, it works quite nicely. But I have
> another question about delta index.
>
> I have a background daemon to run “rake thinking_sphinx:index:delta”
> every 20 seconds.  But the delta index built on the first call of
> “rake thinking_sphinx:index:delta” will be gone if the rake command is
> called a second time. If the rake command can not be called
> repeatedly, what’s the point of having it? This problem really
> conflicts with the delta index concept in my mind. I thought the delta
> index keeps accumulating when “rake thinking_sphinx:index:delta” is
> repeatedly called untill a “rake thingking_sphinx:index” or “rake
> thinking_sphinx:index:merge” is called.
>
> To walk around this, I am trying to modify thinking_sphinx_tasks.rb by
> adding function call "ts_merge(...)" into rake task
> "thinking_sphinx:index:delta". But I am not sure whether this the
> right approach or not.
>
> One more question, does “rake thingking_sphinx:index” clear delta
> index? Should I just run "rake thingking_sphinx:index" once when the
> searchd is started and schedule "rake thingking_sphinx:index:delta"
> and "rake thingking_sphinx:index:merge" in background daemons to run
> repeatedly?
>
> Thanks in advance. Any suggestion is appreciated.
>
>
> Cheers
> >


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