Elastic search - search_after parameter

前端 未结 1 658
名媛妹妹
名媛妹妹 2021-02-13 18:02

I read this doc to understand \'search_after\' and have two question.

  1. I\'m curious that where \"tweet#654323\" comes from. Is this one of document id or field data
相关标签:
1条回答
  • 2021-02-13 18:59
    1. 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.

    2. 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.

    0 讨论(0)
提交回复
热议问题