Hi Louis-Philippe

Thinking Sphinx only looks in app/models by default, but you can add additional 
model paths easy enough - probably put this in an initializer:

  ThinkingSphinx::Configuration.instance.model_directories << 
Rails.root.join('vendor/extensions/models')

Cheers

-- 
Pat

On 17/08/2012, at 2:35 PM, Louis-Philippe wrote:

> Hi,
> 
> I try to integrate TS with Refinery but it seems that TS doesn't find / 
> execute my define_index method. Here is the message when running ts:index 
> "FATAL: no indexes found in config file '.../config/development.sphinx.conf' 
> Only indexer and searchd sections are filled, no source, nor index. 
> 
> I wonder if it can be due to the complexity of the structure. The model is in 
> /vendor/extensions/models, :
> 
> module Refinery
>   module Products
>     class Product < Refinery::Core::BaseModel     
>       self.table_name = 'refinery_products'
>       ...
>       define_index do
>          indexes name
>           set_property :delta => true
>       end
>       ...
>     end
>    end
> end
> 
> Thx by advance for your help !
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Thinking Sphinx" group.
> To view this discussion on the web visit 
> https://groups.google.com/d/msg/thinking-sphinx/-/uvPjRU_zficJ.
> 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