Skip to content

Limit(offset, count) returning combined total of records, not count quantity. #508

Description

@WEWebTeam

For example I create a query using Limit(20, 10), it returns 30 documents instead of just 10.

var db = _connectionMultiplexer.GetDatabase();
var json = db.FT();
var query = new Query("*").SetNoContent(false).SetSortBy("", true).Limit(search.start, search.length);
var results = json.Search("idx1", query);

I've tried with variations, removing the extra setnotcontent and sort but I get the same result.

If I directly query my redis database it works as expected and I only get 10 records back:

FT.SEARCH 'idx1' '*' LIMIT 20 10 SORTBY ASC

I'm using version 1.6.0.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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