Hi Andre

What you could do is add the following to the facets call:
  :group_clause => '@group desc'

Which should ensure the more popular facets are included... but I think this is 
the default anyway. And besides, Sphinx makes no promises about the accuracy of 
grouped search results - see the warning in that section of the docs:
http://www.sphinxsearch.com/docs/manual-0.9.9.html#clustering

(Grouped queries is how Thinking Sphinx figures out facet results)

Cheers

-- 
Pat

On 04/10/2010, at 8:22 PM, andred wrote:

> Good news :) There are indeed more than 1000 tags. Increasing the
> max_matches setting fixed the problem. Thanks!
> 
> I wonder if there's another way of getting the top n tags from the
> index, however. Increasing the max_matches value probably doesn't
> scale well in my case.
> Do you know if this can be done (e.g. by specifying how the facets
> should be ordered or something like that)?
> 
> Andre
> 
> On 2 Okt., 11:31, Pat Allan <[email protected]> wrote:
>> Hi Andre
>> 
>> How many different tags do you have across Appliances? Sphinx has a limit of 
>> 1000 results by default, and so only the first thousand tags (not sure how 
>> it chooses) will be returned.
>> 
>> You could get around this by setting max_matches to something higher in your 
>> sphinx.yml file - TS will automatically use that 
>> setting.http://freelancing-god.github.com/ts/en/advanced_config.html
>> (see the end of that page)
>> 
>> Hoping you *do* have over a thousand tags - otherwise, this problem gets far 
>> more confusing.
>> 
>> Cheers
>> 
>> --
>> Pat
>> 
>> On 02/10/2010, at 1:38 AM, andred wrote:
>> 
>> 
>> 
>>> Hi there,
>> 
>>> i just noticed by accident that some of the facet values are missing
>>> from the results when i'm not specifying concrete search parameters:
>> 
>>>>> Appliance.facets[:tags]["KDE"]
>>> => nil
>>>>> Appliance.facets("desktop")[:tags]["KDE"]
>>> => 25
>> 
>>>>> Appliance.facets[:tags]["KDE4"]
>>> => 19
>>>>> Appliance.facets("desktop")[:tags]["KDE4"]
>>> => 9
>> 
>>> While it works for "KDE4" (and most of the other values) there are a
>>> few values missing.
>> 
>>> Any ideas on what could be wrong or how i could debug this further?
>>> I'm a bit lost tbh...
>> 
>>> Thanks
>>> Andre
>> 
>>> --
>>> You received this message because you are subscribed to the Google Groups 
>>> "Thinking Sphinx" group.> To post to this group, send email 
>>> [email protected].> To unsubscribe from this group, send 
>>> email [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