Skip to content

accept default sorting parameter (asc) on SORTBY on redisearch  #102

@hah

Description

@hah

considering the following query:
ft.aggregate index "*" SORTBY 2 @id ASC is equal to:
ft.aggregate index "*" SORTBY 1 @id

c.B().FtAggregate().Index("index").Query("*").Sortby(1).Property("@id")
should be possible to use, however rueidis is only allowing this:
c.B().FtAggregate().Index("index").Query("*").Sortby(2).Property("@id").Asc()

I'd create a PR as well, but couldn't figure out the proper JSON format for the codegen, sorry about that
thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions