Hi Mattias
At this point in time, attribute edits are only handled by delta
indexing, as you've found out. I'd love to have TS realise whether the
updated columns are attribute sources or not - although this is only
neatly possible in Rails 2.1 or greater - but I've not had time to get
that kind of functionality into the system at this point. Patches are
welcome (indeed, someone may have offered a patch for it already, I'm
not sure - finding time for patches has been difficult recently).
So, short answer: delta indexes are still needed for attribute
updates. Long term, I'm hoping that won't always be the case.
Cheers
--
Pat
On 18/03/2009, at 2:48 AM, Mattias wrote:
>
> Hi all,
>
> I'm working my way through the peepcode TS pdf (recommended) but have
> run into some problems. This tutorial begins with explaining the
> differences between fields and attributes in the realm of sphinx,
> where attributes are defined as, among others, ints, booleans and
> timestamps. Later on, in the section of delta indexing, we find out
> that you can update attributes on the fly for documents but not field
> values without a reindex. Hence delta indexing.
>
> Also, In my app Ive successfully set up a working ts/sphinx
> implementation with filtering of attributes, conditions on fields,
> sorting and the likes. For simplicity, say this search is performed on
> products.
>
> Now, if I've understood the above pdf-sections correctly, this should
> mean attributes (as they are not used in the actual search but rather
> for sorting and filtering) can very well be updated without delta
> indexing. For example, say I edit a product and the updated_at
> timestamp is refreshed. Would this mean ts is able to filter out this
> document with a statement such as :with =>{ updated_at =>
> 1.hour.from_now..1.year.from_now } without having to delta index?
> Similarly, if I have a column for soft deletion and a similar one for
> editing, both of type boolean, could I make ts discriminate on those
> 'on the fly'?
>
> This should work right, if I've not misunderstood something
> fundamental. What worries me is that on searching for this, all posts
> I've seen deal with delta indexing, even for attributes. Could anyone
> please point me in the right direction?
>
> BR
> Mattias
>
> >
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---