ElasticSearch Low Level with LTR plugin Client .Net


(Aamir Nakhwa) #1

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]"


(Russ Cam) #2

What version of Elasticsearch.Net are you using?


(Aamir Nakhwa) #3


(system) #4

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.