Skip to content

Arbitrary limits on sort_by and per_page #584

@JustArchi

Description

@JustArchi

Description

Hey, first of all thank you a lot for creating this awesome software.

We're currently trying to adopt your software for our internal solutions, and we've stumbled upon two rather annoying limits that seem arbitrary. In particular, that is limiting sort_by clause to only 3 fields, and per_page to 250. This currently doesn't meet our requirements, as we need to sort/include more than allowed number.

Steps to reproduce

Well, simply specify per_page=300 or more than 3 fields in sort_by.

Expected Behavior

I'd expect those limits to be configurable in the provided ini config. It doesn't seem rational making it hardcoded at compilation time. I agree that some limits have to be put in place, but it should be up to the system administrator how severe those are.

Actual Behavior

Error code 400 when out of the hardcoded range.

Metadata

Typsense Version: 0.22.2

OS: Debian Stable


Thank you in advance for your time in regards to this issue.

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