Many thx for your help Pat. I tried this too but doesn't work ...

Le vendredi 17 août 2012 20:19:17 UTC+2, Pat Allan a écrit :
>
> It's probably best to use absolute paths - so try the following instead:
>
>   ThinkingSphinx::Configuration.instance.model_directories << 
> Rails.root.join("vendor/extensions/*/app/models")
>
> If Rails.root doesn't work (I'm not familiar with Refinery), then use some 
> other way to get the full path.
>
> Cheers
>
> -- 
> Pat
>
> On 17/08/2012, at 5:24 PM, Louis-Philippe wrote:
>
> > Hi Pat,
> > 
> > Thx for your quick reply.
> > 
> > Il have created a thinking_sphinx.rb initializer with 
> ThinkingSphinx::Configuration.instance.model_directories << 
> "vendor/extensions/*/app/models/refinery" as mentionned on the blog but 
> when I run ts:index I always receive the message FATAL: no indexes found in 
> config file '...'
> > 
> > Cheers.
> > 
> > Le vendredi 17 août 2012 15:35:35 UTC+2, Louis-Philippe a écrit :
> > 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/-/rgDTZuikb9YJ.
> > To post to this group, send email to 
> > [email protected]<javascript:>
> .
> > To unsubscribe from this group, send email to 
> [email protected] <javascript:>.
> > 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 view this discussion on the web visit 
https://groups.google.com/d/msg/thinking-sphinx/-/O55_EyRE32YJ.
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