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.

Reply via email to