@InterfaceStability.Committed @InterfaceAudience.Public public class DefaultSearchQueryRow extends Object implements SearchQueryRow
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()
SearchQueryRowindex in interface SearchQueryRowpublic String id()
SearchQueryRowid in interface SearchQueryRowpublic double score()
SearchQueryRowscore in interface SearchQueryRowpublic JsonObject explanation()
SearchQueryRowrequested in the query, an explanation of the match, in JSON form.explanation in interface SearchQueryRowpublic HitLocations locations()
SearchQueryRowHitLocations map-like object.locations in interface SearchQueryRowpublic Map<String,List<String>> fragments()
SearchQueryRowSearchParams).
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()
SearchQueryRowSearchQuery.fields in interface SearchQueryRowMap. Keys are the fields.Copyright © 2015 Couchbase, Inc.