limit

This block is part of the query group and was last modified in core v10.4.28.

Connection Type

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

limit v10.4.28

Limit the search result, this does not work for streaming search on large storages.

In pins 1
  • limit required
    number
Out pins 1
  • query
    query

Emits the control fragment {"limit": N}, capping how many documents the search returns. An unwired, nil or otherwise falsy limit pin becomes 0. The fragment is hoisted to the top level of the query when collected by a bool block.

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

Studio canvas example for the limit block: typical wiring for limit.

Used in these guides

These documentation pages use or explain this block:

Version history

Introduced in v10.4.28.


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