# Ferret Shared Index Issue

**URL:** <https://www.ruby-forum.com/t/ferret-shared-index-issue/171601>\
**Category:** Rails\
**Created:** [July 6, 2009, 2:48pm UTC](https://www.ruby-forum.com/t/ferret-shared-index-issue/171601 "2009-07-06T14:48:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![johnnybutler7](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/8491ac/32.png) [@johnnybutler7](https://www.ruby-forum.com/u/johnnybutler7)\
**Post date:** [July 6, 2009, 2:48pm UTC](https://www.ruby-forum.com/t/ferret-shared-index-issue/171601/1 "2009-07-06T14:48:19Z")

</div>

Hi,

A really strange one.

I have the following shared index initialized on startup

ActsAsFerret::define\_index(‘shared’,  
:models =\> {  
Product =\> {:fields =\> [:name, :desc]},  
HostApplication =\> {:fields =\> [:name, :desc]}  
},  
:ferret =\> {  
:default\_fields =\> [:name, :desc]  
}  
)

In the console Product.find\_with\_ferret(‘express’) returns around 20  
results which i expect.

When i run under the server, the same code  
Product.find\_with\_ferret(‘express’) returns an error message undefined  
method `find\_with\_ferret’ for #Class:0x63d8208

Ive no idea what is wrong here. Ive tried everything, rebuild indexes,  
restart server etc etc etc but cant see why this wont work?

Anyone got a clue?

JB
