Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Accept strings in group_by #22

Open
dbrgn opened this issue Feb 25, 2011 · 0 comments
Open

Accept strings in group_by #22

dbrgn opened this issue Feb 25, 2011 · 0 comments

Comments

@dbrgn
Copy link

dbrgn commented Feb 25, 2011

I think it should be possible to set the group method in group_by by passing a string.

Right now, I'm using:
import djangosphinx.apis.current as sphinxapi
query(q).group_by('ch_id', sphinxapi.SPH_GROUPBY_ATTR, '@weight desc')

Goal:
query(q).group_by('ch_id', 'SPH_GROUPBY_ATTR', '@weight desc')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant