Reputation: 3053
I read this doc to understand 'search_after' and have two question.
When I added multiple parameter of search_after, Is that 'and' condition or 'or' condition?
ex) "search_after": [1463538857, 5147821]
Upvotes: 15
Views: 14681
Reputation: 217314
As mentioned in that doc, "tweet#654323"
is the _uid
value of the document, which is made up of the _type
and the _id
of the document.
You need as many values in search_after
as you have sort
clauses and those values must be ordered the same way as in your sort clause. In "search_after": [1463538857, 5147821]
, it looks like you're sorting by a date field and some other id field.
Upvotes: 21