search after

This block is part of the query group and was last modified in core v14.0.4.

Connection Type

This block connects from a query type block. Make sure to connect this block to the appropriate left-hand side connection.

search after v14.0.4

Enables cursor-based pagination using search_after. Pass the cursor from a previous search to continue from where it left off.

In pins 1
  • cursor
    array

    The sort values from the last hit of the previous search result. Pass the cursor output from a search block.

Out pins 1
  • query
    query

Emits {"search_after": <cursor pin>} for cursor-based pagination: pass the sort values of the last hit of the previous page to continue right after it. An unwired, nil, empty or otherwise falsy cursor emits an empty object {} : no cursor, so the search returns the first page. Elasticsearch only.

A typical wiring for search after: the query out pin feeds cast to object.

Studio canvas example for the search after block: typical wiring for search after.

Version history

Introduced in v14.0.4.


Back to query Return to the main group to view all sub-groups Back to query: misc. Return to the group to view all blocks within this group