Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Integration TS in Refinery CMS
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  5 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Louis-Philippe  
View profile  
 More options Aug 17 2012, 9:35 am
From: Louis-Philippe <lph.engelm...@gmail.com>
Date: Fri, 17 Aug 2012 06:35:35 -0700 (PDT)
Local: Fri, Aug 17 2012 9:35 am
Subject: Integration TS in Refinery CMS

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 must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Pat Allan  
View profile   Translate to Translated (View Original)
 More options Aug 17 2012, 10:50 am
From: "Pat Allan" <p...@freelancing-gods.com>
Date: Fri, 17 Aug 2012 10:50:28 -0400
Local: Fri, Aug 17 2012 10:50 am
Subject: Re: [ts] Integration TS in Refinery CMS
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:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Louis-Philippe  
View profile   Translate to Translated (View Original)
 More options Aug 17 2012, 12:24 pm
From: Louis-Philippe <lph.engelm...@gmail.com>
Date: Fri, 17 Aug 2012 09:24:19 -0700 (PDT)
Local: Fri, Aug 17 2012 12:24 pm
Subject: Re: Integration TS in Refinery CMS

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 :


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Pat Allan  
View profile   Translate to Translated (View Original)
 More options Aug 17 2012, 2:19 pm
From: "Pat Allan" <p...@freelancing-gods.com>
Date: Fri, 17 Aug 2012 14:19:17 -0400
Local: Fri, Aug 17 2012 2:19 pm
Subject: Re: [ts] Re: Integration TS in Refinery CMS
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:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Louis-Philippe  
View profile  
 More options Aug 18 2012, 3:57 am
From: Louis-Philippe <lph.engelm...@gmail.com>
Date: Sat, 18 Aug 2012 00:57:57 -0700 (PDT)
Local: Sat, Aug 18 2012 3:57 am
Subject: Re: [ts] Re: Integration TS in Refinery CMS

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 :


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »