I have installed ElasticSearch 6.1.2 and also installed ltr plugin...
And when I am executing below query, it returned following error.
Note: hotels is index name
var searchResponse = lowlevelClient.Search("hotels", @"
""query"": {
""multi_match"": {
""query"": ""hotel"",
""fields"": [""name"", ""address""]
}
},
""rescore"": {
""query"": {
""rescore_query"": {
""sltr"": {
""params"": {
""keywords"": ""hotel""
},
""model"": ""8"",
}
}
}
}");
Error in Response
"Expected [START_OBJECT] but found [VALUE_STRING]"