public class UpdateHelper extends AbstractComponent
Modifier and Type | Class and Description |
---|---|
static class |
UpdateHelper.Operation |
static class |
UpdateHelper.Result |
deprecationLogger, logger, settings
Constructor and Description |
---|
UpdateHelper(Settings settings,
ScriptService scriptService) |
Modifier and Type | Method and Description |
---|---|
GetResult |
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
|
protected UpdateHelper.Result |
prepare(UpdateRequest request,
GetResult getResult)
Prepares an update request by converting it into an index or delete request or an update response (no action).
|
UpdateHelper.Result |
prepare(UpdateRequest request,
IndexShard indexShard)
Prepares an update request by converting it into an index or delete request or an update response (no action).
|
logDeprecatedSetting, logRemovedSetting, nodeName
@Inject public UpdateHelper(Settings settings, ScriptService scriptService)
public UpdateHelper.Result prepare(UpdateRequest request, IndexShard indexShard)
protected UpdateHelper.Result prepare(UpdateRequest request, GetResult getResult)
public GetResult extractGetResult(UpdateRequest request, String concreteIndex, long version, Map<String,Object> source, XContentType sourceContentType, @Nullable BytesReference sourceAsBytes)
Copyright © 2009–2017. All rights reserved.