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


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