Excellent, that fixed it, Pat!
It's funny because you wouldn't expect a versioning system to need
deltas if I'm not letting Sphinx index it--which I'm not, obviously,
since past versions will never change.
On May 24, 9:35 pm, Pat Allan <
p...@freelancing-gods.com> wrote:
> Ah, it seems you're using a versioning system? It's the Piece::Version
> model that's complaining - perhaps try adding thedeltacolumn to that
> as well?
>
> --
> Pat
>
> On 24/05/2009, at 12:21 PM, Peter Akkies wrote:
>
>
>
> > Yes, there's definitely adeltacolumn there.
>
> > On May 24, 2009, at 8:53 PM, Pat Allan wrote:
>
> >> Do you have a column calleddeltain 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:
>
> >>>undefinedmethod`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 <
p...@freelancing-gods.com> 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) "undefinedmethod`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 thedeltaindex even if I
> >>>>> haven't run thedeltaindexing yet? (I'm running ts:index every 2