All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.sksamuel.elastic4s.requests.searches.SearchHits.scala Maven / Gradle / Ivy

package com.sksamuel.elastic4s.requests.searches

import com.fasterxml.jackson.annotation.JsonProperty

case class SearchHits(total: Total, @JsonProperty("max_score") maxScore: Double, hits: Array[SearchHit]) {
  def size: Long        = hits.length
  def isEmpty: Boolean  = hits.isEmpty
  def nonEmpty: Boolean = hits.nonEmpty
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy