Hi Pat,

Thanks for clarifying.
I'm having a look at writing the define_index block, but the database is 
legacy, and has has_and_belongs_to_many associations where keys don't follow 
Rails conventions.

I'll post two problems i've already encountered in another thread.

Thanks for the info,
Maxime

On 27 May 2010, at 15:54, Pat Allan wrote:

> Hi Maxime
> 
> I don't think this is possible, because there are certain attributes Thinking 
> Sphinx automatically adds to each index, and that it expects when querying. 
> I'm afraid you'll need to rewrite the index definitions in define_index 
> blocks in your models.
> 
> It's easy enough to index data via TS using a modified conf file (rake 
> ts:reindex) - but it's the searching that won't work out, I'm afraid.
> 
> An alternative is to just use Riddle, which is a link between Ruby and Sphinx 
> (instead of ActiveRecord and Sphinx), but I think it's far less painful to 
> convert the indexes to TS' syntax. Still, your mileage may vary.
> 
> Cheers
> 
> -- 
> Pat
> 
> On 27/05/2010, at 9:30 PM, Maxime wrote:
> 
>> Hi everyone,
>> 
>> I have been asked to integrate Thinking Sphinx to a Rails app which
>> uses the same DB as a legacy PHP application.
>> There has been a good amount of work done on the Sphinx config file
>> during development of the PHP app, and I'm trying to see
>> if there's an easy way to avoid redoing all that in index definitions
>> in the model (i.e. extracet what's needed from the conf file, or
>> bypass declaration in the models altogether).
>> 
>> Is there a way to do that ?
>> 
>> Cheers,
>> Maxime
>> 
>> -- 
>> 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.
>> 
> 
> -- 
> 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.
> 

-- 
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