Hi All,
I have following links model indexed like following,
define_index do
set_property :delta => true
indexes :name, :as => :link_name, :prefixes => true
indexes :description, :as => :link_description, :prefixes => true
indexes tags(:name), :as=>:tag_name, :prefixes => true
where "links.deleted_at is null"
end
In that I have two types of search set
1. search using name and tags (It should not include description)
2. search using name and description (It should not include tags)
So how can I use 'or' in search
Link.search :conditions => { :link_name => query
'OR' :link_description => query}
Like that I have many other model in which I have different sets of
attributes for search.
Thanks & Regards,
Rahul P. Chaudhari
--
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.