here it is
define_index do
indexes "LOWER(projects.title)", :as => :title, :prefix =>
true, :sortable => true
indexes description
indexes contractor_requirements
indexes skills(:title), :as => :skills
indexes branch(:title), :as => :branch
indexes realm(:title), :as => :realm
indexes state
has projects(:id), :as => :project_id
has employer_id
has contractor_city_id
has safe_deal, :type => :integer
has fixed_price, :type => :integer
has rate, :type => :integer
has min_price, :type => :integer
has bids_count, :type => :integer
has created_at
has realm_id, :as => :realm_id
has branch_id, :as => :branch_ids
has skills(:id), :as => :skill_ids
where "(projects.state = 'published' OR projects.state =
'started')"
set_property :delta => :delayed
set_property :min_prefix_len => Project::MIN_PREFIX_LEN
set_property :enable_star => true
end
On Jul 9, 7:37 pm, Pat Allan <[email protected]> wrote:
> Hi Sergey
>
> What else is in your define_index block?
>
> --
> Pat
>
> On 09/07/2010, at 9:42 PM, Sergey Gershun wrote:
>
> > Hi, guys
>
> > I'm experiencing problems with delayed delta. Deltas are not run
> > properly.
>
> > here is my case
>
> > class Project
> > define_index do
>
> > set_property :delta => :delayed
> > end
>
> > migration:
>
> > add_column :projects, :delta, :boolean, :default => true, :null =>
> > false
>
> > dd daemon is up and running. But new records do not show up in seach
> > results. And I do not see any records in delayed jobs table.
>
> > Thanks, Sergey
>
> > --
> > 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
> > athttp://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.