Yes, there's definitely a delta column there.

On May 24, 2009, at 8:53 PM, Pat Allan wrote:


Do you have a column called delta in your pieces table?

-- Pat

On 24/05/2009, at 11:51 AM, Peter Akkies wrote:


I'm actually getting the same error now when I create a new Piece,
which is one of my models.

The error message reads:

undefined method `delta=' for #<Piece::Version:0x3c070e4>

The model's indexes are as follows:

define_index do
  indexes title, subtitle, slug
  has category_id, issue_id, kolumn_id, published_on, section_id
  has authors(:id), :as => :author_ids
  indexes section.slug, :as => :section
  indexes category.title, :as => :category
  indexes column.title, :as => :column
  indexes [title, subtitle, teaser, body], :as => :body
  indexes active_comments.body, :as => :comments
  indexes authors.pen_name, :as => :author
  indexes authors.affiliation, :as => :author_affiliation
  indexes authorships.name, :as => :author_alias
  set_property :delta => true

  # Sorting for search results
  has "4", :as => :custom_model_sort, :type => :integer
end

I'm running the latest Thinking Sphinx as of writing this, too. Any
ideas?

On Apr 11, 3:59 am, Pat Allan <[email protected]> wrote:
Sorry for the delay in getting back to you. Turns out that was all my
fault, it was a bug in the code. I've just fixed it, so feel free to
get the latest from GitHub.

Cheers

--
Pat

On 22/03/2009, at 4:09 PM, spiceee wrote:





Hey, I have this config on my User model:

define_index do
  indexes login, :sortable => true
  indexes name, :sortable => true
  set_property :delta => :datetime, :threshold => 1.day
  set_property :enable_star => true
  set_property :min_prefix_len => 3
  set_property :morphology => false
end

Whenever I try to destroy a recent User I get

account#destroy (NoMethodError) "undefined method `delta' for
#<User:
0x2b75095e14c0>"

I'm migrating from Ultrasphinx and not quite used to how TS handles
deltas yet. Do my user gets included in the delta index even if I
haven't run the delta indexing yet? (I'm running ts:index every 2
hours)

Thanks,

-Spe.



--~--~---------~--~----~------------~-------~--~----~
This message is part of the topic "undefined method delta" in the Google Group "Thinking Sphinx"
for which you requested email updates.
To stop receiving email updates for this topic, please visit the topic
at http://groups.google.com/group/thinking-sphinx/t/4b81029295f0240d
-~----------~----~----~----~------~----~------~--~---


--
With kind regards / Met vriendelijke groet,

Peter Akkies

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to