diff --git a/client/lib/plugin_wrappers/word/WordPluginWrapper.cpp b/client/lib/plugin_wrappers/word/WordPluginWrapper.cpp index 9fbe4600e8416b681f036f2bdef395564dea5db6..bd9882d04780162aa777084d067065726c2611e1 100644 --- a/client/lib/plugin_wrappers/word/WordPluginWrapper.cpp +++ b/client/lib/plugin_wrappers/word/WordPluginWrapper.cpp @@ -22,10 +22,10 @@ WordPluginWrapper::get(const std::string &word, json request_message = { {"query_type", "get" }, {"plugin_type", plugin_type_ }, - {"query", word }, - {"query_language", query_language}, + {"word", word }, + {"filter", query_language}, {"batch_size", batch_size }, - {"reload", reload ? 1 : 0} + {"restart", reload} }; std::pair response( std::move(connection_->request(request_message.dump()))); diff --git a/client/lib/plugin_wrappers/word/WordPluginWrapper_tests.cpp b/client/lib/plugin_wrappers/word/WordPluginWrapper_tests.cpp index 7b86871cf69f854ab59dcef8df2d98875f5e1639..09b1e120afcab0b25a694943fed0ebc7b6abc679 100644 --- a/client/lib/plugin_wrappers/word/WordPluginWrapper_tests.cpp +++ b/client/lib/plugin_wrappers/word/WordPluginWrapper_tests.cpp @@ -18,12 +18,12 @@ TEST(WordPWGet, Output) { json actual = json::parse(memorizer->received_message); json expected = { - {"query_type", "get" }, - {"plugin_type", "word" }, - {"query", "test_word"}, - {"query_language", "pos::noun"}, - {"batch_size", 3 }, - {"reload", 1 } + {"query_type", "get" }, + {"plugin_type", "word" }, + {"word", "test_word"}, + {"filter", "pos::noun"}, + {"batch_size", 3 }, + {"restart", true } }; EXPECT_EQ(expected, actual); }