Skip to content

Problem with pagination information when using Scout #188

@15g-lucas

Description

@15g-lucas

Description

When I use Scout search (with Elasticsearch), the total number of items returned in the to field of the search response does not seem consistent.

For example, if I have 20 users, I make this query:

{
  “search”: {
    “text”: {
      “value”: “”
    },
    “page”: 1,
    “limit”: 10
  }
}

The REST API response returns:

  “from”: 1,
  “last_page”: 1,
  “per_page”: 10,
  “to”: 10,
  “total”: 10,

Whereas I am expecting:

  “from”: 1,
  “last_page”: 2,
  “per_page”: 10,
  “to”: 10,
  “total”: 20,

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