mech wrote:
> To add to that, I have created a new Rails 2.3.5 app with a single
> JobPosting model and resource
> 
> define_index do
>     indexes status, :sortable => true
> 
>     has country_id
> end
> 
> The strange part is when I go to console and update country_id, the
> delta will not reflect "1", but when I update status, it will reflect
> "1". I use the same application and try on TS 1.2.12, and both update
> of status and country_id will result in delta=1
> 
> I am not sure why updating some field will trigger delta to go to "1"
> whilst another field will not :(

Pat may correct me here, but I think TS is now smart enough to detect
when you've only changed an int/timestamp attribute and updates the
live index directly instead of adding the full record to the delta
index.

Sphinx <=0.9.9 only supports live updates to attributes of some types,
hence the need for delta indexes still. Hopefully that changes soon [1]

-- James Healy <[email protected]>  Tue, 12 Jan 2010 13:04:04 +1100

[1] http://twitter.com/pat/status/7400439339
-- 
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