Yup, just use your first example - the search word is an optional argument.
-- Pat On 19/02/2013, at 2:32 AM, Mina Zaki wrote: > Hey, > > I have an index with sphinx and i want to do a search with attributes only, > for example > > MyModel.search( :with => with) instead of MyModel.search(search_word, :with > => with) > > Is that possible ? > > -- > 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?hl=en. > For more options, visit https://groups.google.com/groups/opt_out. > > -- 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?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
