JestClient is returning signature mismatch error while running the query using Get.Builder, though the other queries using SearchBuilder are working just fine.
This works:
SearchSourceBuilder searchSourceBuilder = new SearchSourceBuilder();
searchSourceBuilder.query(QueryBuilders.matchPhraseQuery("_id", id));
Search search = new SearchBuilder(searchSourceBuilder.toString(), "my_index", "default").create();
return jestClient.execute(search);
But NOT this:
return jestClient.execute(new Get.Builder("my_index", id)
.setParameter("preference", "_primary").type("default").build());
Any thoughts?
After updating
aws-signing-request-interceptor
version from 0.0.16 to 0.0.22 in pom.xml, the issue got resolved, but I'm not sure whyGet.Builder
only failing with 0.0.16 version (by the way I'm usingelasticsearch
dependency of version5.5.2
).