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