Groups
Groups
Sign in
Groups
Groups
Thinking Sphinx
Conversations
About
Send feedback
Help
problem with delta index and custom sql attribute
34 views
Skip to first unread message
matteo folin
unread,
Apr 23, 2012, 1:19:20 PM
4/23/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Thinking Sphinx
I have this index definition with a custom sql attribute:
define_index do
is_active_sql = "(products.deleted_at IS NULL AND
products.available_on <= NOW())
...
has is_active_sql, :as => :is_active, :type => :boolean
....
set_property :delta => true
end
when I create a new Product delta index works fine but is_active is
not calculated and remain false.
There's a solution or I must my Product model ?
Thanks.
Reply all
Reply to author
Forward
0 new messages