Oh... so why are you running a facets query on a class that has no facets?

Granted, TS should handle this situation and just return an empty search result.

-- 
Pat

On 28/12/2010, at 3:23 PM, adamcooper wrote:

> We have 7 models that have indexes defined.
> 
> There is a total of four facets.  Two integer and two MVA. (These are
> spread across two models)
> 
> There are two unique facets.  (The two models have the same facet
> names)
> 
> The ClassName that is being filtered on doesn't have any facets
> defined.
> 
> Thanks,
> Adam
> 
> On Dec 26, 1:39 am, Pat Allan <[email protected]> wrote:
>> Hi Adam
>> 
>> Thanks for double-checking with the standard release. What I meant by the 
>> number of facets is how many different facets do you have defined across all 
>> of your models? And how many if you consider just uniquely named facets? 
>> (ie: two facets with the same name in different models count as just one).
>> 
>> Doesn't explain why the count is wrong, but just curious, maybe it'll give 
>> me a hint to the cause.
>> 
>> Cheers
>> 
>> --
>> Pat
>> 
>> On 25/12/2010, at 5:06 AM, adamcooper wrote:
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>>> Hi Pat,
>> 
>>> I'm not sure what you mean by how many facets are being queried?
>> 
>>> Sphinx version is 0.9.9 release.
>> 
>>> The previous version of thinking sphinx was from my fork that was
>>> essentially this commit:
>>> https://github.com/freelancing-god/thinking-sphinx/commit/c3891e07723...
>> 
>>> The specific commit we were using from my fork was:
>>> https://github.com/adamcooper/thinking-sphinx/commit/396aea2e7ba3b2a3...
>> 
>>> This error happened after merging in the latest rails3 branch from
>>> freelancing-god/thinking-sphinx repository. (Yesterday)
>> 
>>> I verified the error also happens on a clean 2.0.1 gem install.  (Ie.
>>> not using my fork)
>> 
>>> Thanks,
>>> Adam
>> 
>>> On Dec 23, 8:59 pm, Pat Allan <[email protected]> wrote:
>>>> Hi Adam
>> 
>>>> Firstly - how many facets are being queried? And what version of Sphinx? 
>>>> Also - what version of TS were you using previously - I didn't think 
>>>> anything had changed around facet queries between 2.0.0 and 2.0.1.
>> 
>>>> Cheers
>> 
>>>> --
>>>> Pat
>> 
>>>> On 24/12/2010, at 12:29 PM, adamcooper wrote:
>> 
>>>>> Hey Pat,
>> 
>>>>> I just upgraded to Rails 3.0.3 from Rails 3.0.1 and upgrade to TS
>>>>> 2.0.1.
>> 
>>>>> Now, we are getting this error:
>> 
>>>>> Riddle::ResponseError (searchd error (status: 1): bad multi-query
>>>>> count 0 (must be in 1..32 range)):
>>>>>  riddle (1.2.2) lib/riddle/client.rb:629:in `request'
>>>>>  riddle (1.2.2) lib/riddle/client.rb:221:in `run'
>>>>>  thinking-sphinx (2.0.1) lib/thinking_sphinx/bundled_search.rb:39:in
>>>>> `populate'
>>>>>  thinking-sphinx (2.0.1) lib/thinking_sphinx/bundled_search.rb:20:in
>>>>> `searches'
>>>>>  thinking-sphinx (2.0.1) lib/thinking_sphinx/search.rb:73:in
>>>>> `bundle_searches'
>>>>>  thinking-sphinx (2.0.1) lib/thinking_sphinx/facet_search.rb:47:in
>>>>> `populate'
>>>>>  thinking-sphinx (2.0.1) lib/thinking_sphinx/facet_search.rb:13:in
>>>>> `initialize'
>>>>>  thinking-sphinx (2.0.1) lib/thinking_sphinx/search_methods.rb:422:in
>>>>> `new'
>>>>>  thinking-sphinx (2.0.1) lib/thinking_sphinx/search_methods.rb:422:in
>>>>> `facets'
>> 
>>>>> When we make this call:
>> 
>>>>> ThinkingSphinx.facets("keyword" -
>>>>> {:conditions=>{}, :all_facets=>true, :per_page=>10, :page=>1, 
>>>>> :retry_stale=>true, :class_facet=>false, :classes=>[ClassName], 
>>>>> :sort_mode=>:extended, :order=>"@relevance
>>>>> DESC", :star=>true, :with_all=>{}, :with=>{}}
>> 
>>>>> Not sure what to make of this.
>> 
>>>>> Thanks,
>>>>> Adam
>> 
>>>>> --
>>>>> 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 
>>>>> athttp://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 
>>> athttp://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.
> 

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