Hi Jeremy

To search on a specific field, you can use the :conditions option:

  Article.search :conditions => {:title => 'something'}

http://pat.github.io/thinking-sphinx/searching.html#conditions

Cheers

-- 
Pat

On 20 Mar 2014, at 10:14 pm, Jeremy Li <[email protected]> wrote:

> I create two index(:title, :content) in a model Article, and if i want to 
> search data only in the :title index, how to do that?
> 
> -- 
> 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.

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

Reply via email to