trait Hit extends AnyRef
A common trait for Get, MultiGet, Search and MultiSearch results to provide common functionality for the HitReader typeclass.
- Alphabetic
- By Inheritance
- Hit
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Abstract Value Members
- abstract def exists: Boolean
- abstract def id: String
- abstract def index: String
- abstract def primaryTerm: Long
- abstract def score: Float
- abstract def seqNo: Long
- abstract def sort: Option[Seq[AnyRef]]
- abstract def sourceAsMap: Map[String, AnyRef]
- abstract def sourceAsString: String
- abstract def version: Long
Concrete Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @HotSpotIntrinsicCandidate() @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def isSourceEmpty: Boolean
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- final def ref: DocumentRef
- final def safeTo[T](implicit reader: HitReader[T]): Try[T]
Uses a HitReader typeclass to convert the returned source into type T.
Uses a HitReader typeclass to convert the returned source into type T. This method will return a Left[Throwable] if there was an error during the marshalling, otherwise it will return a Right[T]
- final def safeToOpt[T](implicit arg0: HitReader[T]): Option[Try[T]]
- final def sourceAsByteBuffer: ByteBuffer
- final def sourceAsBytes: Array[Byte]
- final def sourceAsMutableMap: Map[String, AnyRef]
- final def sourceField(name: String): AnyRef
- final def sourceFieldOpt(name: String): Option[AnyRef]
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- final def to[T](implicit arg0: HitReader[T]): T
Uses a HitReader typeclass to convert the returned source into type T.
Uses a HitReader typeclass to convert the returned source into type T. This method will throw an exception if the marshalling process fails
- final def toOpt[T](implicit arg0: HitReader[T]): Option[T]
Returns a Some(t) if the hit exists.
Returns a Some(t) if the hit exists. It might not exist (an empty hit) if this was returned by a Get request and the given id did not exist, in which case it will return None.
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)