Skip to content

Accept strings in group_by #22

@dbrgn

Description

@dbrgn

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions