@InterfaceStability.Experimental @InterfaceAudience.Public public class DefaultSearchQueryRow extends Object implements SearchQueryRow
The default implementation for a SearchQueryRow
Constructor and Description |
---|
DefaultSearchQueryRow(String index,
String id,
double score,
JsonObject explanation,
HitLocations locations,
Map<String,List<String>> fragments,
Map<String,String> fields) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
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 ). |
int |
hashCode() |
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 |
toString() |
public String index()
SearchQueryRow
The name of the FTS pindex that gave this result.
index
in interface SearchQueryRow
public String id()
SearchQueryRow
The id of the matching document.
id
in interface SearchQueryRow
public double score()
SearchQueryRow
The score of this hit.
score
in interface SearchQueryRow
public JsonObject explanation()
SearchQueryRow
If requested in the query
, an explanation of the match, in JSON form.
explanation
in interface SearchQueryRow
public HitLocations locations()
SearchQueryRow
This hit’s location, as an HitLocations
map-like object.
locations
in interface SearchQueryRow
public Map<String,List<String>> fragments()
SearchQueryRow
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.
fragments
in interface SearchQueryRow
Map
. Keys are the fields.public Map<String,String> fields()
SearchQueryRow
The value of each requested field (as defined in the SearchQuery
.
fields
in interface SearchQueryRow
Map
. Keys are the fields.Copyright © 2015 Couchbase, Inc.