Hi Pat and Wade,
okay, thank you for your replies. I fear I am not a good enough coder
to come up with a MS-SQL adapter for Thinking Sphinx...sorry :-(
But, as I am trying to find a workaround for my situation, I thought I
could put the table I want TS to index on a MySQL server, and make a
new connection in database.yml for this MySQL-Server. So I went ahead
and did that. Then, in my model-to-be-indexed, I put
"establish_connection :mysql_conn".
Unfortunately, TS doesn't seem to pick this up, because when trying to
index, I get the
S1000 (0) [unixODBC][FreeTDS][SQL Server]Unable to connect to data
source
error. As there are no relationship defined on this model, I don't
understand why this happens. Is there a better workaround?
Thank you
Toni
On Jul 29, 10:44 am, Pat Allan <
p...@freelancing-gods.com> wrote:
> Wade's absolutely correct - there's no support for SQL Server in
> Thinking Sphinx yet.
>
> If you'd like to submit a patch, that'd be fantastic - and Wade's
> suggestion for using the Postgres adapter as a starting point is a
> good one. The adapters hold the unique database approaches to SQL
> functions.
>
> Cheers
>
> --
> Pat
>
> On 29/07/2009, at 1:30 AM, Wade Winningham wrote:
>
>
>
>
>
> > I'm pretty sure ThinkingSphinx only works with MySQL and Postgres
> > right now unless someone's written other adapters.
>
> > I've been intending to write one for SQL Server, but ran into an issue
> > with SQL Server lacking a few functions MySQL has built-in and
> > Postgres can easily include with stored functions. The main one being
> > a comparable function for MySQL's GROUP_CONTACT function.
>
> > If you'd like to take a stab at writing an adapter for it, I think the
> > Postgres adapter is actually a bit closer to what you'd need than the
> > MySQL one. In the gem source for TS just look in the
> > lib/thinking-sphinx/adapters directory.
>
> > -Wade Winningham
>
> > On Tue, Jul 28, 2009 at 10:48 AM, Tonkatsufan<
tonkatsu...@gmail.com>