Hi Erik

It's not in the docs, but it's in the code - give it a shot, let me know how 
you go:
  set_sphinx_primary_key :sphinx_id

Cheers

-- 
Pat

On 17/01/2011, at 2:29 PM, elanderholm wrote:

> I know normally sphinx assumes your primary key is named 'id' and is a
> incrementing integer.
> 
> I have a few reasons I can't do this so i created a method for my
> models that works like this:
> set_sphinx_primary_key "sphinx_id"
> 
> I have an old version of sphinx and haven't been able to update
> because I monkey-patched it and I can't find anything that says this
> is a feature on the newer versions of TS.
> 
> I was supposed to do a pull request with Pat long ago with my patches,
> but to be honest I was heads down at that point on CarWoo! (where i'm
> still at) and didn't even know what a pull request really was.
> 
> Is this a feature in the newest version of TS?  Can I specify the name
> that TS uses for the incrementing integer or whatever it's called?
> 
> 
> Thanks.
> Erik Landerholm
> CTO CarWoo! Inc.
> 
> -- 
> 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