T - the result data class.public class SearchHit<T> extends Object
| Constructor and Description |
|---|
SearchHit(String id,
float score,
Object[] sortValues,
Map<String,List<String>> highlightFields,
T content) |
| Modifier and Type | Method and Description |
|---|---|
T |
getContent() |
List<String> |
getHighlightField(String field)
gets the highlight values for a field.
|
Map<String,List<String>> |
getHighlightFields() |
String |
getId() |
float |
getScore() |
List<Object> |
getSortValues() |
String |
toString() |
public float getScore()
public T getContent()
public List<Object> getSortValues()
public List<String> getHighlightField(String field)
field - must not be nullCopyright © 2011–2020 Pivotal Software, Inc.. All rights reserved.