Package | Description |
---|---|
org.elasticsearch.action.index |
Index action.
|
org.elasticsearch.action.indexedscripts.put |
Index action.
|
org.elasticsearch.action.percolate | |
org.elasticsearch.action.support | |
org.elasticsearch.action.update | |
org.elasticsearch.client |
The client module allowing to easily perform actions/operations.
|
org.elasticsearch.common.settings.loader |
Settings loader (parser) allowing to parse different "source" formats into
a
Settings . |
org.elasticsearch.common.xcontent | |
org.elasticsearch.common.xcontent.cbor | |
org.elasticsearch.common.xcontent.json | |
org.elasticsearch.common.xcontent.smile | |
org.elasticsearch.common.xcontent.yaml | |
org.elasticsearch.gateway.local.state.meta | |
org.elasticsearch.index.query | |
org.elasticsearch.search.builder | |
org.elasticsearch.search.lookup | |
org.elasticsearch.search.suggest |
Modifier and Type | Method and Description |
---|---|
IndexRequest |
IndexRequest.contentType(XContentType contentType)
Sets the content type that will be used when generating a document from user provided objects (like Map).
|
IndexRequestBuilder |
IndexRequestBuilder.setContentType(XContentType contentType)
The content type that will be used to generate a document from user provided objects (like Map).
|
IndexRequestBuilder |
IndexRequestBuilder.setSource(Map<String,Object> source,
XContentType contentType)
Index the Map as the provided content type.
|
IndexRequest |
IndexRequest.source(Map source,
XContentType contentType)
Index the Map as the provided content type.
|
Modifier and Type | Method and Description |
---|---|
PutIndexedScriptRequest |
PutIndexedScriptRequest.contentType(XContentType contentType)
Sets the content type that will be used when generating a document from user provided objects (like Map).
|
PutIndexedScriptRequestBuilder |
PutIndexedScriptRequestBuilder.setContentType(XContentType contentType)
The content type that will be used to generate a document from user provided objects (like Map).
|
PutIndexedScriptRequestBuilder |
PutIndexedScriptRequestBuilder.setSource(Map<String,Object> source,
XContentType contentType)
Index the Map as the provided content type.
|
PutIndexedScriptRequest |
PutIndexedScriptRequest.source(Map source,
XContentType contentType)
Index the Map as the provided content type.
|
Modifier and Type | Method and Description |
---|---|
PercolateSourceBuilder.DocBuilder |
PercolateSourceBuilder.DocBuilder.setDoc(Map doc,
XContentType contentType) |
PercolateRequestBuilder |
PercolateRequestBuilder.setSource(Map<String,Object> source,
XContentType contentType)
Raw variant of
PercolateRequestBuilder.setSource(PercolateSourceBuilder) |
PercolateRequest |
PercolateRequest.source(Map document,
XContentType contentType)
Raw version of
PercolateRequest.source(PercolateSourceBuilder) |
Modifier and Type | Method and Description |
---|---|
BytesReference |
QuerySourceBuilder.buildAsBytes(XContentType contentType) |
Modifier and Type | Method and Description |
---|---|
XContentType |
UpdateHelper.Result.updateSourceContentType() |
Modifier and Type | Method and Description |
---|---|
UpdateRequest |
UpdateRequest.doc(Map source,
XContentType contentType)
Sets the doc to use for updates when a script is not specified.
|
GetResult |
UpdateHelper.extractGetResult(UpdateRequest request,
String concreteIndex,
long version,
Map<String,Object> source,
XContentType sourceContentType,
BytesReference sourceAsBytes)
Extracts the fields from the updated document to be returned in a update response
|
UpdateRequestBuilder |
UpdateRequestBuilder.setDoc(Map source,
XContentType contentType)
Sets the doc to use for updates when a script is not specified.
|
UpdateRequestBuilder |
UpdateRequestBuilder.setUpsert(Map source,
XContentType contentType)
Sets the doc source of the update request to be used when the document does not exists.
|
UpdateRequest |
UpdateRequest.upsert(Map source,
XContentType contentType)
Sets the doc source of the update request to be used when the document does not exists.
|
Constructor and Description |
---|
Result(Streamable action,
UpdateHelper.Operation operation,
Map<String,Object> updatedSourceAsMap,
XContentType updateSourceContentType) |
Modifier and Type | Field and Description |
---|---|
static XContentType |
Requests.CONTENT_TYPE
The content type used to generate request builders (query / search).
|
static XContentType |
Requests.INDEX_CONTENT_TYPE
The default content type to use to generate source documents when indexing.
|
Modifier and Type | Method and Description |
---|---|
XContentType |
JsonSettingsLoader.contentType() |
abstract XContentType |
XContentSettingsLoader.contentType() |
XContentType |
YamlSettingsLoader.contentType() |
Modifier and Type | Method and Description |
---|---|
XContentType |
XContentParser.contentType() |
XContentType |
XContentBuilder.contentType() |
XContentType |
XContentGenerator.contentType() |
static XContentType |
XContentType.fromRestContentType(String contentType) |
XContentType |
XContent.type()
The type this content handles and produces.
|
static XContentType |
XContentType.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static XContentType[] |
XContentType.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
static XContentType |
XContentFactory.xContentType(byte[] data)
Guesses the content type based on the provided bytes.
|
static XContentType |
XContentFactory.xContentType(byte[] data,
int offset,
int length)
Guesses the content type based on the provided bytes.
|
static XContentType |
XContentFactory.xContentType(BytesReference bytes)
Guesses the content type based on the provided bytes.
|
static XContentType |
XContentFactory.xContentType(CharSequence content)
Guesses the content type based on the provided char sequence.
|
static XContentType |
XContentFactory.xContentType(InputStream si)
Guesses the content type based on the provided input stream.
|
Modifier and Type | Method and Description |
---|---|
static Tuple<XContentType,Map<String,Object>> |
XContentHelper.convertToMap(byte[] data,
boolean ordered) |
static Tuple<XContentType,Map<String,Object>> |
XContentHelper.convertToMap(byte[] data,
int offset,
int length,
boolean ordered) |
static Tuple<XContentType,Map<String,Object>> |
XContentHelper.convertToMap(BytesReference bytes,
boolean ordered) |
Modifier and Type | Method and Description |
---|---|
static XContentBuilder |
XContentFactory.contentBuilder(XContentType type)
Returns a binary content builder for the provided content type.
|
static XContentBuilder |
XContentFactory.contentBuilder(XContentType type,
OutputStream outputStream)
Constructs a xcontent builder that will output the result into the provided output stream.
|
static XContent |
XContentFactory.xContent(XContentType type)
Returns the
XContent for the provided content type. |
Modifier and Type | Method and Description |
---|---|
XContentType |
CborXContentGenerator.contentType() |
XContentType |
CborXContentParser.contentType() |
XContentType |
CborXContent.type() |
Modifier and Type | Method and Description |
---|---|
XContentType |
JsonXContentParser.contentType() |
XContentType |
JsonXContentGenerator.contentType() |
XContentType |
JsonXContent.type() |
Modifier and Type | Method and Description |
---|---|
XContentType |
SmileXContentGenerator.contentType() |
XContentType |
SmileXContentParser.contentType() |
XContentType |
SmileXContent.type() |
Modifier and Type | Method and Description |
---|---|
XContentType |
YamlXContentGenerator.contentType() |
XContentType |
YamlXContentParser.contentType() |
XContentType |
YamlXContent.type() |
Modifier and Type | Method and Description |
---|---|
XContentType |
MetaDataStateFormat.format()
Returns the
XContentType used to serialize xcontent on write. |
Modifier and Type | Method and Description |
---|---|
protected XContentBuilder |
MetaDataStateFormat.newXContentBuilder(XContentType type,
OutputStream stream) |
Constructor and Description |
---|
MetaDataStateFormat(XContentType format,
String prefix)
Creates a new
MetaDataStateFormat instance |
Modifier and Type | Method and Description |
---|---|
BytesReference |
QueryBuilder.buildAsBytes(XContentType contentType) |
BytesReference |
BaseFilterBuilder.buildAsBytes(XContentType contentType) |
BytesReference |
FilterBuilder.buildAsBytes(XContentType contentType) |
BytesReference |
BaseQueryBuilder.buildAsBytes(XContentType contentType) |
Modifier and Type | Method and Description |
---|---|
BytesReference |
SearchSourceBuilder.buildAsBytes(XContentType contentType) |
Modifier and Type | Method and Description |
---|---|
XContentType |
SourceLookup.sourceContentType() |
Modifier and Type | Method and Description |
---|---|
static Tuple<XContentType,Map<String,Object>> |
SourceLookup.sourceAsMapAndType(byte[] bytes,
int offset,
int length) |
static Tuple<XContentType,Map<String,Object>> |
SourceLookup.sourceAsMapAndType(BytesReference source) |
Modifier and Type | Method and Description |
---|---|
void |
SourceLookup.setNextSourceContentType(XContentType sourceContentType) |
Modifier and Type | Method and Description |
---|---|
BytesReference |
SuggestBuilder.buildAsBytes(XContentType contentType)
Returns a
BytesReference
representing the suggest lookup request. |
BytesReference |
SuggestBuilder.SuggestionBuilder.buildAsBytes(XContentType contentType) |
Copyright © 2009–2015. All rights reserved.