[Docs] Clarify search_after behavior

Closes #34232
This commit is contained in:
patrykk21 2018-11-30 14:30:23 +01:00 committed by Jim Ferenczi
parent 43ea498f2f
commit bb2cf7e6be
1 changed files with 4 additions and 0 deletions

View File

@ -37,6 +37,10 @@ of the sort specification. Otherwise the sort order for documents that have
the same sort values would be undefined and could lead to missing or duplicate
results. The <<mapping-id-field,`_id` field>> has a unique value per document
but it is not recommended to use it as a tiebreaker directly.
Beware that `search_after` looks for the first document which fully or partially
matches tiebreaker's provided value. Therefore if a document has a tiebreaker value of
`"654323"` and you `search_after` for `"654"` it would still match that document
and return results found after it.
<<doc-values,doc value>> are disabled on this field so sorting on it requires
to load a lot of data in memory. Instead it is advised to duplicate (client side
or with a <<ingest-processors,set ingest processor>>) the content