Yeah, I think what James has said matches my experience - although it's been a 
little while since I've hit that problem. Generally, if you're using the same 
filters across multiple models, make sure the attributes exist in all models, 
even if it's just a placeholder:

  has '0', :as => :specialty_ids, :type => :integer

As for documentation on status codes, there's nothing in the TS docs, because 
I've not found anything about it in the Sphinx docs - it's just something 
picked up from reading the PHP API (which is my main source of information on 
how to build Riddle, my Ruby API).

-- 
Pat

On 19/07/2010, at 5:35 PM, James Healy wrote:

> Chris McCann wrote:
>> After my last post I went back and spelunked the production
>> search_debug log I created and noticed the following error message
>> where :status => 1:
>> 
>>  error=>"index wall_post_core,wall_post_delta: no such filter
>> attribute 'specialty_ids'"
>> 
>> Looking into the code I saw that we were using a global set of
>> attributes that didn't apply to every model we were searching.  Will
>> this cause sphinx to choke, or does it just announce the error and
>> return results if it can?
> 
> In my experience, using an invalid filter in the search conditions
> always causes 0 results to be returned.
> 
> That's on model specific searches though, I've never tried it on app
> wide searches via ThinkingSphins#search().
> 
> -- James Healy <[email protected]>  Mon, 19 Jul 2010 17:34:54 +1000
> 
> -- 
> 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.
> 

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