Questions about LTR rescore

Questions about LTR rescore on this document

  1. According to 'window_size >= from + size', for page_size: 10,
* Page 1: `from = 0`,  window_size >= 10
* Page 2: `from = 10`, window_size >= 20
* Page 3: `from = 20`, window_size >= 30

According to the pagination limitation, we should use same 30 even for the 1st page?

  1. Is it possible to use search_after in first pass query?

  2. "query_text" is incorrect. It should be "query"

      "params": { 
        "query_text": "the quick brown fox"
      }
{
  "query": {
    "match": {
      "field": "some_field"
    }
  },
  "sort": [
    {"_score": "desc"},
    {"some_unique_field": "asc"}  // assuming 'some_unique_field' is unique for each document
  ],
  "search_after": ["previous_score", "previous_unique_value"],  // Example values
  "size": 10,
  "rescore": {
    "window_size": 30,
    "query": {
      "rescore_query": {
        "sltr": {
          "model_id": "ltr-model",
          "params": {
            "query": "the quick brown fox"
          }
        }
      }
    }
  }
}