Yes did all that. here is the indexing in the model. Maybe I'm doing
it the wrong way.
define_index do
indexes :name, :sortable => true
indexes description, :sortable => true
indexes imageasset_id, :sortable => true
indexes furnitype_id, :sortable => true
has created_at
end
On Feb 19, 2009, at 8:46 AM, Pat Allan wrote:
>
> Hmm, is furnitype_id set up as an attribute in your define_index
> block? You've stopped, reindexed and restarted since adding it as an
> attribute?
>
> If yes to all, then this is confusing...
>
> --
> Pat
>
> On 19/02/2009, at 10:31 PM, ginko wrote:
>
>>
>> Hi,
>>
>> I've indexed the model properly and when I try to exclude records
>> with
>> the method below it does not work. It returns all records anyway.
>> am I
>> doing something wrong? Thanks in advance.
>>
>> @allRaiders = Furni.search params[:search], :without =>
>> {:furnitype_id
>> => 1}, :page => @page, :per_page => 60
>>
>>>
>
>
> >
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---