Skip to content

basalt / search/src / DEFAULT_MAX_OFFSET

Variable: DEFAULT_MAX_OFFSET ​

> const DEFAULT_MAX_OFFSET: 10000 = 10_000

Defined in: search/src/search.ts:147

Largest offset a single search may ask for unless maxOffset says otherwise. Deep pages are expensive on every engine (each skipped row is still scored and sorted) and Elasticsearch refuses from + size above its max_result_window of 10 000 anyway; past that, page with a filter.

Released under the MIT License.