@InterfaceStability.Committed @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()
SearchQueryRowThe name of the FTS pindex that gave this result.
index in interface SearchQueryRowpublic String id()
SearchQueryRowThe id of the matching document.
id in interface SearchQueryRowpublic double score()
SearchQueryRowThe score of this hit.
score in interface SearchQueryRowpublic JsonObject explanation()
SearchQueryRowIf requested in the query, an explanation of the match, in JSON form.
explanation in interface SearchQueryRowpublic HitLocations locations()
SearchQueryRowThis hit’s location, as an HitLocations map-like object.
locations in interface SearchQueryRowpublic Map<String,List<String>> fragments()
SearchQueryRowThe 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 SearchQueryRowMap. Keys are the fields.public Map<String,String> fields()
SearchQueryRowThe value of each requested field (as defined in the SearchQuery.
fields in interface SearchQueryRowMap. Keys are the fields.Copyright © 2015 Couchbase, Inc.