Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.

Commit

Permalink
Fix EsClient to use the query.
Browse files Browse the repository at this point in the history
  • Loading branch information
mars committed May 22, 2017
1 parent 2113992 commit 8c7a9cc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/scala/EsClient.scala
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,8 @@ object EsClient {
val response = restClient.performRequest(
"POST",
s"/$indexName/_search",
Map.empty[String, String].asJava)
Map.empty[String, String].asJava,
new StringEntity(query, ContentType.APPLICATION_JSON))
response.getStatusLine.getStatusCode match {
case 200 => Some(parse(EntityUtils.toString(response.getEntity)))
case _ => None
Expand Down

0 comments on commit 8c7a9cc

Please sign in to comment.