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
}