Class SearchRow
java.lang.Object
com.couchbase.client.java.search.result.SearchRow
An FTS result row (or hit).
- Since:
- 2.3.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanIfSearchOptions.explain(boolean)was set to true, returns an explanation of the match.<T> TThe value of each requested field (as defined in theSearchQuery.<T> TThe value of each requested field (as defined in theSearchQuery.The fragments for each field that was requested as highlighted (as defined in theSearchParams).inthashCode()id()The id of the matching document.index()The name of the FTS index that gave this result.keyset()Returns the keyset of this search row, which contains the keys associated with the result.This rows's location, as anSearchRowLocationsmap-like object.doublescore()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. -
keyset
Returns the keyset of this search row, which contains the keys associated with the result. The keyset is used for pagination or other advanced search operations.- Returns:
- the keyset of this search row
- See Also:
-
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 anSearchRowLocationsmap-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
-