public class SearchScrollResult
extends io.searchbox.client.JestResult
| Modifier and Type | Class and Description |
|---|---|
class |
SearchScrollResult.Hit<T,K>
Immutable class representing a search hit.
|
| Modifier and Type | Field and Description |
|---|---|
static String |
EXPLANATION_KEY |
static String |
FIELDS_KEY |
static String |
HIGHLIGHT_KEY |
static String[] |
PATH_TO_MAX_SCORE |
static String[] |
PATH_TO_TOTAL |
static String |
SORT_KEY |
| Constructor and Description |
|---|
SearchScrollResult(io.searchbox.client.JestResult source) |
| Modifier and Type | Method and Description |
|---|---|
protected <T,K> SearchScrollResult.Hit<T,K> |
extractHit(Class<T> sourceType,
Class<K> explanationType,
com.google.gson.JsonElement hitElement,
String sourceKey) |
protected Map<String,List<String>> |
extractJsonObject(com.google.gson.JsonObject highlight) |
protected List<String> |
extractSort(com.google.gson.JsonArray sort) |
<T> List<SearchScrollResult.Hit<T,Void>> |
getHits(Class<T> sourceType) |
<T,K> List<SearchScrollResult.Hit<T,K>> |
getHits(Class<T> sourceType,
Class<K> explanationType) |
protected <T,K> List<SearchScrollResult.Hit<T,K>> |
getHits(Class<T> sourceType,
Class<K> explanationType,
boolean returnSingle) |
Float |
getMaxScore() |
protected com.google.gson.JsonElement |
getPath(String[] path) |
String |
getScrollId() |
Integer |
getTotal() |
createSourceObject, extractSource, extractSource, getErrorMessage, getJsonMap, getJsonObject, getJsonString, getKeys, getPathToResult, getResponseCode, getSourceAsObject, getSourceAsObjectList, getSourceAsString, getSourceAsStringList, getValue, isSucceeded, setErrorMessage, setJsonMap, setJsonObject, setJsonString, setPathToResult, setResponseCode, setSucceededpublic static final String EXPLANATION_KEY
public static final String HIGHLIGHT_KEY
public static final String FIELDS_KEY
public static final String SORT_KEY
public static final String[] PATH_TO_TOTAL
public static final String[] PATH_TO_MAX_SCORE
public SearchScrollResult(io.searchbox.client.JestResult source)
public <T> List<SearchScrollResult.Hit<T,Void>> getHits(Class<T> sourceType)
public <T,K> List<SearchScrollResult.Hit<T,K>> getHits(Class<T> sourceType, Class<K> explanationType)
protected <T,K> List<SearchScrollResult.Hit<T,K>> getHits(Class<T> sourceType, Class<K> explanationType, boolean returnSingle)
protected <T,K> SearchScrollResult.Hit<T,K> extractHit(Class<T> sourceType, Class<K> explanationType, com.google.gson.JsonElement hitElement, String sourceKey)
protected Map<String,List<String>> extractJsonObject(com.google.gson.JsonObject highlight)
public Integer getTotal()
public Float getMaxScore()
protected com.google.gson.JsonElement getPath(String[] path)
public String getScrollId()
Copyright © 2017. All Rights Reserved.