diff --git a/elastic4s-domain/src/main/scala/com/sksamuel/elastic4s/Hit.scala b/elastic4s-domain/src/main/scala/com/sksamuel/elastic4s/Hit.scala index 6bfe99f2c..fedae4100 100644 --- a/elastic4s-domain/src/main/scala/com/sksamuel/elastic4s/Hit.scala +++ b/elastic4s-domain/src/main/scala/com/sksamuel/elastic4s/Hit.scala @@ -19,6 +19,8 @@ trait Hit { def seqNo: Long def primaryTerm: Long + def sort: Option[Seq[AnyRef]] + final def ref: DocumentRef = DocumentRef(index, id) /** diff --git a/elastic4s-domain/src/main/scala/com/sksamuel/elastic4s/requests/get/GetResponse.scala b/elastic4s-domain/src/main/scala/com/sksamuel/elastic4s/requests/get/GetResponse.scala index 601334eaf..5e0376a3d 100644 --- a/elastic4s-domain/src/main/scala/com/sksamuel/elastic4s/requests/get/GetResponse.scala +++ b/elastic4s-domain/src/main/scala/com/sksamuel/elastic4s/requests/get/GetResponse.scala @@ -18,6 +18,7 @@ case class GetResponse(@JsonProperty("_id") id: String, override def exists: Boolean = found override def score: Float = 0 + override def sort: Option[Seq[AnyRef]] = None def fields: Map[String, AnyRef] = Option(_fields).getOrElse(Map.empty) def source: Map[String, Any] = sourceAsMap