Modifier and Type | Method and Description |
---|---|
static Document |
from(org.elasticsearch.action.get.GetResponse getResponse)
Create a
Document from GetResponse . |
static Document |
from(org.elasticsearch.index.get.GetResult source)
Create a
Document from GetResult . |
static MultiGetItem<Document> |
from(org.elasticsearch.action.get.MultiGetItemResponse itemResponse)
Creates a
MultiGetItem from a MultiGetItemResponse . |
static List<MultiGetItem<Document>> |
from(org.elasticsearch.action.get.MultiGetResponse source)
Creates a List of
MultiGetItem s from MultiGetResponse . |
static SearchDocument |
from(org.elasticsearch.search.SearchHit source)
Create a
SearchDocument from SearchHit . |
static Document |
fromDocumentFields(Iterable<org.elasticsearch.common.document.DocumentField> documentFields,
String index,
String id,
long version,
long seqNo,
long primaryTerm)
|
@Nullable public static Document from(org.elasticsearch.action.get.GetResponse getResponse)
getResponse
- the getResponse GetResponse
.Document
, null if getResponse.isExists() returns false.@Nullable public static Document from(org.elasticsearch.index.get.GetResult source)
source
- the source GetResult
.Document
, null if source.isExists() returns false.public static List<MultiGetItem<Document>> from(org.elasticsearch.action.get.MultiGetResponse source)
MultiGetItem
s from MultiGetResponse
.source
- the source MultiGetResponse
, not null.public static MultiGetItem<Document> from(org.elasticsearch.action.get.MultiGetItemResponse itemResponse)
MultiGetItem
from a MultiGetItemResponse
.itemResponse
- the response, must not be nullpublic static SearchDocument from(org.elasticsearch.search.SearchHit source)
source
- the source SearchHit
.SearchDocument
.Copyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.