I found the answer to my question in sphinxsearch forum :
http://sphinxsearch.com/forum/view.html?id=1517
Short answer, add "max_filter_values: XXXXX" to your sphinx.yml config.
Le lundi 22 avril 2013 09:40:13 UTC+2, Guillaume Montard a écrit :
>
> Hi,
>
> I'm using TS 1.4.11 and here is my index definition :
>
> ####### SPHINX
> define_index do
> indexes name, :sortable => true
> has :id, :as=>:video_ids
> ...
> end
>
> Thanks for your help.
>
> Le samedi 20 avril 2013 09:13:57 UTC+2, Pat Allan a écrit :
>>
>> Hi Guillaume
>>
>> What versions of Thinking Sphinx and Sphinx are you using? And what's
>> your index definition for Video?
>>
>> Cheers
>>
>> --
>> Pat
>>
>> On 19/04/2013, at 6:25 PM, Guillaume Montard wrote:
>>
>> > Hello,
>> >
>> > I'm trying to filter a search based on id of my model.
>> >
>> > So for example if i'm doing :
>> > video_ids = Video.all.map(&:id)
>> > Video.search "toto", :with=>{:video_ids=>video_ids}
>> >
>> > But i've got this error :
>> > Riddle::ResponseError (searchd error (status: 1): invalid attribute
>> 'video_ids'(4) set length 9487 (should be in 0..4096 range)):
>> >
>> > Is there any limit to the :with filtering ?
>> > (i've got thousands and thousands of Video records so the video_ids
>> Array could be very huge)
>> >
>> > Thanks.
>> >
>> > --
>> > 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.