I think this might be due to the pagination settings on your request.
To increase the number of results on a specific request, try the
request with the following parameters:

Restaurant.facets(:limit => 50, :max_matches => 50)

Set your limit based on the number of results you want.  Also note
that max_matches can not be greater than the value in your sphinx
configuration file.

On Apr 24, 2:59 pm, Thuva Tharma <[email protected]> wrote:
> I'm having problems with the facets functionality offered by Thinking
> Sphinx. I have a restaurant model configured as shown in this 
> pastie:http://gist.github.com/101305
>
> When I do Restaurant.facets, the returned hash doesn't reflect the
> records in the database. A sample hash that was returned can be seen
> in this pastie:http://gist.github.com/101308
>
> The facet information for region_id is completely correct.
>
> However, the facet information for cuisine_ids and neighbourhood_id is
> is wrong. The cuisine_ids and neighbourhood_id hashes are missing many
> ids that should be there.
>
> For example, there are 43 restaurants in the neighbourhood given by id
> 238. Also, there are 407 restaurants with the cuisine given by id 11.
> As you can see from the pastie above, those ids are not in the hash.
>
> I couldn't figure out the issue. Reindexing didn't work. I also tried
> deleting the files in db/sphinx and indexing. That didn't work as
> well.
>
> By the way, I'm using 0.9.8-release (r1371).
>
> Thank you in advance.
>
> -- Thuva Tharma

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