Attributes improve performance if you're filtering by integers, floats  
or timestamps. It's a different way of matching to string comparisons  
for search queries.

As for strings, you can't filter by them yet if they're attributes.  
You can sort, though (if it's a field flagged as sortable or an  
attribute). If they're fields and you're using the :conditions option,  
it's not actually filtering by them, it's just appending field- 
specific searches to the query string.

Model.search 'blah', :conditions => {:foo => 'bar'}
is the same as
Model.search 'blah @foo bar', :match_mode => :extended

-- 
Pat

On 16/07/2009, at 1:59 AM, Alex wrote:

>
> It's a string.
>
> Does that mean attributes don't improve performance?
>
> >


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

Reply via email to