case class SearchRow(index: String, id: String, score: Double, _explanation: Try[Array[Byte]], locations: Option[SearchRowLocations], fragments: Map[String, Seq[String]], fields: Try[Array[Byte]]) extends Product with Serializable
An FTS row (or "hit")
- index
The name of the FTS pindex that gave this result.
- id
The id of the matching document.
- score
The score of this hit.
- locations
This rows's location, as a SearchRowLocations.
- fragments
The fragments for each field that was requested as highlighted. A fragment is an extract of the field's value where the matching terms occur. Matching terms are surrounded by a
<match>
tag.- fields
The value of each requested field, as a map. The key is the field.
- Since
1.0.0
- Alphabetic
- By Inheritance
- SearchRow
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new SearchRow(index: String, id: String, score: Double, _explanation: Try[Array[Byte]], locations: Option[SearchRowLocations], fragments: Map[String, Seq[String]], fields: Try[Array[Byte]])
- index
The name of the FTS pindex that gave this result.
- id
The id of the matching document.
- score
The score of this hit.
- locations
This rows's location, as a SearchRowLocations.
- fragments
The fragments for each field that was requested as highlighted. A fragment is an extract of the field's value where the matching terms occur. Matching terms are surrounded by a
<match>
tag.- fields
The value of each requested field, as a map. The key is the field.
Value Members
- def explanationAs[T](implicit deserializer: JsonDeserializer[T]): Try[T]
If
explain
was set on theSearchQuery
this will return an explanation of the match.If
explain
was set on theSearchQuery
this will return an explanation of the match.It can be returned in any supported JSON type, e.g.
com.couchbase.client.scala.json.JsonObject
. See a full list at these JSON docs - def fieldsAs[T](implicit deserializer: JsonDeserializer[T]): Try[T]
- val fragments: Map[String, Seq[String]]
- val id: String
- val index: String
- val locations: Option[SearchRowLocations]
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- def productIterator: Iterator[Any]
- Definition Classes
- Product
- val score: Double