@InterfaceStability.Experimental @InterfaceAudience.Public public interface SearchQueryRow
An FTS result row (or hit).
Modifier and Type | Method and Description |
---|---|
JsonObject |
explanation()
If
requested in the query , an explanation of the match, in JSON form. |
Map<String,String> |
fields()
The value of each requested field (as defined in the
SearchQuery . |
Map<String,List<String>> |
fragments()
The fragments for each field that was requested as highlighted (as defined in the
SearchParams ). |
String |
id()
The id of the matching document.
|
String |
index()
The name of the FTS pindex that gave this result.
|
HitLocations |
locations()
This hit’s location, as an
HitLocations map-like object. |
double |
score()
The score of this hit.
|
String index()
The name of the FTS pindex that gave this result.
String id()
The id of the matching document.
double score()
The score of this hit.
JsonObject explanation()
If requested in the query
, an explanation of the match, in JSON form.
HitLocations locations()
This hit’s location, as an HitLocations
map-like object.
Map<String,List<String>> fragments()
The fragments for each field that was requested as highlighted (as defined in the SearchParams
).
A fragment is an extract of the field’s value where the matching terms occur. Matching terms are surrounded by a <match>
tag.
Map
. Keys are the fields.Map<String,String> fields()
The value of each requested field (as defined in the SearchQuery
.
Map
. Keys are the fields.Copyright © 2015 Couchbase, Inc.