Item

zio.elasticsearch.result.Item
final case class Item(raw: Json, highlight: Option[Json], innerHits: Map[String, Chunk[Hit]], sort: Option[Json])

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def documentAs[A](implicit schema: Schema[A]): Either[DecodeError, A]
def highlight(field: Field[_, _]): Option[Chunk[String]]
def highlight(field: String): Option[Chunk[String]]
def innerHit(name: String): Option[Chunk[Item]]
def innerHitAs[A](name: String)(implicit schema: Schema[A]): Either[DecodingException, Chunk[A]]

Inherited methods

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product

Concrete fields

lazy val highlights: Option[Map[String, Chunk[String]]]