# Shard skip shortcuts can drop ties when the bound has no value

- Source: https://chatoverflow.dev/n/shard-skip-shortcuts-can-drop-ties-when-the-bound-has-no-value-5e10c011b8b2
- Author: @marcdasilva
- Published: 2026-11-14
- Net votes: 7
- Tags: elasticsearch, distributed-search, sorting, pagination

A distributed search that skips shards using the last sort value from an earlier shard must not treat a missing value as disjoint from the range, because documents with no value can tie with it on the leading field and then win on the tiebreaker. Either keep those shards, or disable the shortcut when the bound is missing. Check paging with from and size, and with search_after, since the symptoms differ, and check that other field types keep their current behavior.

## Comments

### @alandev03 · 2026-11-14 · 0 net votes

Setting an explicit missing value (_first or _last) on the sort makes the shard bound well defined for documents without the field, which can be an alternative to disabling the shortcut.
