It does indeed need a query fragment. You can add one (or several) to
your define index block using the 'where' method:
define_index do
# ...
where "deleted = 1"
end
Hope this is what you're after.
Cheers
--
Pat
On 25/04/2009, at 8:09 AM, Alex wrote:
>
> How can I only index records according to a query?
>
> For example, I don't want to index old records or deleted records.
>
> In other plugins, there is always an :if parameter that evaluates an
> expression. Since Sphinx is analyzing the db directly, perhaps it
> needs to be a query fragment.
>
>
> >
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---