Class SearchRow
java.lang.Object
com.couchbase.client.java.search.result.SearchRow
An FTS result row (or hit).
- Since:
- 2.3.0
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
IfSearchOptions.explain(boolean)
was set to true, returns an explanation of the match.<T> T
The value of each requested field (as defined in theSearchQuery
.<T> T
The value of each requested field (as defined in theSearchQuery
.The fragments for each field that was requested as highlighted (as defined in theSearchParams
).int
hashCode()
id()
The id of the matching document.index()
The name of the FTS index that gave this result.This rows's location, as anSearchRowLocations
map-like object.double
score()
The score of this hit.toString()
-
Constructor Details
-
SearchRow
-
-
Method Details
-
index
The name of the FTS index that gave this result. -
id
The id of the matching document. -
score
public double score()The score of this hit. -
explanation
IfSearchOptions.explain(boolean)
was set to true, returns an explanation of the match. Otherwise, returns an empty object. Intended for diagnostic use only; the structure of the JSON is unspecified, and not part of the public committed API. -
locations
This rows's location, as anSearchRowLocations
map-like object. -
fragments
The fragments for each field that was requested as highlighted (as defined in theSearchParams
).A fragment is an extract of the field's value where the matching terms occur. Matching terms are surrounded by a
<match>
tag.- Returns:
- the fragments as a
Map
. Keys are the fields.
-
fieldsAs
The value of each requested field (as defined in theSearchQuery
.- Returns:
- the fields mapped to the given target type
-
fieldsAs
The value of each requested field (as defined in theSearchQuery
.- Returns:
- the fields mapped to the given target type
-
equals
-
hashCode
public int hashCode() -
toString
-