Skip to content

Commit

Permalink
Merge pull request #9 from thanhtien522/fix-entities
Browse files Browse the repository at this point in the history
Fix wrong place of aggregations in search response
  • Loading branch information
neitomic committed Aug 7, 2017
2 parents 94bed5b + 18b6c52 commit fd698a2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion build.sbt
Expand Up @@ -2,7 +2,7 @@ organization := "com.github.thanhtien522"

name := "es-http-client"

version := "0.2-SNAPSHOT"
version := "0.2.1"

scalaVersion := "2.11.11"

Expand Down Expand Up @@ -39,6 +39,7 @@ publishTo := {
Some("releases" at nexus + "service/local/staging/deploy/maven2")
}


developers := List(
Developer(id="thanhtien522", name="Tien Nguyen", email="thanhtien522@gmail.com", url=url("https://github.com/thanhtien522"))
)
Expand Up @@ -201,11 +201,11 @@ case class MultiSearchResponse(responses: Seq[SearchResponse])

@JsonIgnoreProperties(ignoreUnknown = true)
@JsonNaming(classOf[LowerCaseWithUnderscoresStrategy])
case class SearchResponse(timeOut: Boolean, took: Long, hits: SearchHits)
case class SearchResponse(timeOut: Boolean, took: Long, hits: SearchHits, aggregations: Map[String, Any])

@JsonIgnoreProperties(ignoreUnknown = true)
@JsonNaming(classOf[LowerCaseWithUnderscoresStrategy])
case class SearchHits(total: Long, maxScore: Double, hits: Seq[SearchHit], aggregations: Map[String, Any])
case class SearchHits(total: Long, maxScore: Double, hits: Seq[SearchHit])

@JsonIgnoreProperties(ignoreUnknown = true)
@JsonNaming(classOf[LowerCaseWithUnderscoresStrategy])
Expand Down

0 comments on commit fd698a2

Please sign in to comment.