yulinxp1
(Liu)
December 13, 2024, 8:44pm
1
Questions about LTR rescore on this document
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?
Is it possible to use search_after in first pass query?
"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"
}
}
}
}
}
}
system
(system)
Closed
January 28, 2025, 12:29am
3
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.