Skip to content

Pagerfanta / Double Query #587

@StefanGlaesser

Description

@StefanGlaesser

Hello,
I'm using the Pagerfanta component for navigation through my results page by page:

$userPaginator = $finder->findPaginated($request->get('q'));
$userPaginator->setCurrentPage($page);

That leads to 2 (nearly identical) elasticsearch queries:

  1. query: {"query":{"query_string":{"query":"ak"}}}
  2. query: {"query":{"query_string":{"query":"ak"}},"from":10,"size":10}

So my question is, why are 2 queries fired instead of one?

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