Just looked at the v1/v2 source, I was setting max_matches/limit then, but I'm 
not with the v3 branch - I'll need to fix that! In the meantime, using those 
options will deal with the problem.

Sorry for the hassle.

-- 
Pat

On 14/06/2013, at 12:53 AM, Patrick Lamotte wrote:

> Hi Pat,
> Thanks, it worked that way, but is it the good way to do it now ? it worked 
> before with v2 ?
> Thanks again,best regards
> 
> Patrick
> 
> Le 13 juin 2013 à 16:33, Pat Allan a écrit :
> 
>> Hi Patrick
>> 
>> Can you try setting max_matches and limit in your search call to 1000?
>> 
>> Image.facets(
>>   :with => {:provider_id => provs_list},
>>   :max_matches => 1000,
>>   :limit       => 1000
>> )
>> 
>> -- 
>> Pat
>> 
>> On 13/06/2013, at 7:21 PM, pix_plm wrote:
>> 
>>> Hi,
>>> I am having problems with facets after updating to TS V3, for some reason 
>>> facets don't return all parameters and I don't understand what are the 
>>> criterias ?
>>> I use facets to get number of images per provider (provider_id), calling 
>>> Image.facets :with { :provider_id => provs_list }
>>> 
>>> facets.inspect => **** #<ThinkingSphinx::FacetSearch:0x00000006bc1ff0 
>>> @options={:with=>{:provider_id=>[99, 92, 150, 28, 116, 170, 45, 25, 74, 21, 
>>> 3, 55, 12, 71, 93, 27, 79, 98, 52, 152, 65, 151, 38, 155, 115, 161, 53, 
>>> 124, 106, 4, 133, 68, 156, 121, 134, 39, 117, 86, 26, 48, 67, 13, 167, 33, 
>>> 162, 34, 22, 85, 15, 90, 47, 69, 18, 168, 163, 147, 153, 166, 59, 63, 131, 
>>> 75, 154, 105, 41, 64, 119, 139, 84, 118, 94, 107, 96, 31, 113, 165, 40, 
>>> 149, 35, 158, 8, 70, 112, 76, 97, 17, 109, 145, 137, 110, 11, 58, 7, 43, 
>>> 16, 51, 1, 50, 10, 83, 36, 102, 169, 159, 111, 123, 19, 91, 66, 101, 160], 
>>> :content_error=>0}, :classes=>[Image(id: integer, ...)]}, @query=nil, 
>>> @hash={}>
>>> 
>>> results :
>>> facets[:provider_id] => {4=>167153, 7=>185846, 10=>26215, 13=>88504, 
>>> 17=>617844, 16=>53911, 18=>105185, 19=>12223, 21=>361506, 15=>59375, 
>>> 26=>261693, 25=>27155, 27=>156428, 33=>553155, 31=>129199, 34=>719638, 
>>> 22=>151379, 35=>3216, 36=>126032, 38=>19279}
>>> 
>>> I don't understand why I don't get all providers results ?
>>> 
>>> I am running rails 3.2.13, ts 3.0.3, sphinx 2.0.7
>>> 
>>> indices for Image Model
>>> 
>>> ThinkingSphinx::Index.define(:image, :with => :active_record, :delta => 
>>> ThinkingSphinx::Deltas::DelayedDelta) do
>>> indexes :title, :subject,  ...
>>> # attributes
>>> has :ratio, :reception_date ...
>>> has :provider_id, :facet => true
>>> end
>>> 
>>> Any idea ?
>>> Thanks
>>> Patrick
>>> 
>>> 
>>> 
>>> -- 
>>> 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 a topic in the 
>> Google Groups "Thinking Sphinx" group.
>> To unsubscribe from this topic, visit 
>> https://groups.google.com/d/topic/thinking-sphinx/yiF1CHH9XAA/unsubscribe?hl=en.
>> To unsubscribe from this group and all its topics, 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.
> 
> 



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


Reply via email to