Hi!
I am using TS 2 and would like to set some conditions on certain fields in
the index.
A *company* has many *sites*, which contain *country_id*. So the index
inside Company model is:
define_index do
indexes :name, :sortable => true
indexes :description
has sites.country_id, :facet => true
end
The sites table has *is_default* boolean value and I would like to only
index sites that has *is_default = true*.
How can I do that in the index?
Kind regards, Miha
--
You received this message because you are subscribed to the Google Groups
"Thinking Sphinx" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/thinking-sphinx.
For more options, visit https://groups.google.com/d/optout.