Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[#2374] expose sort in hit
Browse files Browse the repository at this point in the history
Haikel magrahi committed Dec 11, 2023
1 parent 52b4c26 commit fdab3cc
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -19,6 +19,8 @@ trait Hit {
def seqNo: Long
def primaryTerm: Long

def sort: Option[Seq[AnyRef]]

final def ref: DocumentRef = DocumentRef(index, id)

/**
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit fdab3cc

Please sign in to comment.