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
> 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 thinking-sphinx@googlegroups.com. > To unsubscribe from this group, send email to thinking-sphinx+unsubscribe@googlegroups.com. > For more options, visit this group at http://groups.google.com/group/thinking-sphinx?hl=en.
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 :
> 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
> 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 thinking-sphinx@googlegroups.com. > To unsubscribe from this group, send email to thinking-sphinx+unsubscribe@googlegroups.com. > For more options, visit this group at http://groups.google.com/group/thinking-sphinx?hl=en.
> 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 thinkin...@googlegroups.com<javascript:>
> .
> > To unsubscribe from this group, send email to > thinking-sphi...@googlegroups.com <javascript:>.
> > For more options, visit this group at > http://groups.google.com/group/thinking-sphinx?hl=en.