LTRChain多模型查询
文档中的原文:Chaining multiple rescores, perhaps with increasingly sophisticated models
可以进行多个模型的联合查询
#利用多模型查询
POST tmdb/_search
{
"query": {
"query_string": {
"query": "rambo"
}
},
"rescore": [
{
"window_size": 1000,
"query": {
"rescore_query": {
"sltr": {
"params": {
"keywords": "rambo"
},
"model": "test_6"
}
}
}
},
{
"window_size": 10,
"query": {
"rescore_query": {
"sltr": {
"params": {
"keywords": "rambo"
},
"model": "my_ranklib_model"
}
}
}
}
],
"_source": [
"original_title",
"id",
"vote_average"
]
}