4

エラスティック検索の REST 呼び出しに Jest Client を使用しようとしています。行に次のエラーが表示されますJestClient client = factory.getObject();

スレッド「メイン」の例外 java.lang.NoSuchMethodError: io.searchbox.client.config.HttpClientConfig.isRequestCompressionEnabled()Z で io.searchbox.client.JestClientFactory.getObject(JestClientFactory.java:51) で JestTest.main(JestTest.ジャワ:22)

コードは次のとおりです。

    JestClientFactory factory = new JestClientFactory();
    factory.setHttpClientConfig(new HttpClientConfig
                            .Builder("http://localhost:9200")
                            .multiThreaded(true)
                            .build());
    JestClient client = factory.getObject();

このエラーを修正するにはどうすればよいですか?

4

0 に答える 0