Skip to content

ElasticsearchKeyset

Defined in: filters/elasticsearch.ts:440

The keyset helper returned by createElasticsearchKeyset.

Property Type Description Defined in
keys () => string[] Logical cursor keys, in sort order — use to build cursor.fromItem. filters/elasticsearch.ts:442
searchAfter (cursor) => unknown[] | undefined The search_after values for a decoded cursor, in sort order (undefined for a null cursor: first page). Dates become epoch milliseconds, like a date field’s hit.sort. filters/elasticsearch.ts:447
sort (direction?) => ElasticsearchSort[] The sort array for a fetch direction (backward flips, the paginator restores). filters/elasticsearch.ts:444