Class UpdateQuery

java.lang.Object
org.springframework.data.elasticsearch.core.query.UpdateQuery

public class UpdateQuery extends Object
Defines an update request.
Author:
Rizwan Idrees, Mohsin Husen, Peter-Josef Meisch, Farid Faoudi
See Also:
  • Method Details

    • builder

      public static UpdateQuery.Builder builder(String id)
    • builder

      public static UpdateQuery.Builder builder(Query query)
    • getId

      public String getId()
    • getScript

      public @Nullable String getScript()
    • getParams

      public @Nullable Map<String,Object> getParams()
    • getDocument

      public @Nullable Document getDocument()
    • getUpsert

      public @Nullable Document getUpsert()
    • getLang

      public @Nullable String getLang()
    • getRouting

      public @Nullable String getRouting()
    • getScriptedUpsert

      public @Nullable Boolean getScriptedUpsert()
    • getDocAsUpsert

      public @Nullable Boolean getDocAsUpsert()
    • getFetchSource

      public @Nullable Boolean getFetchSource()
    • getFetchSourceIncludes

      public @Nullable List<String> getFetchSourceIncludes()
    • getFetchSourceExcludes

      public @Nullable List<String> getFetchSourceExcludes()
    • getIfSeqNo

      public @Nullable Long getIfSeqNo()
    • getIfPrimaryTerm

      public @Nullable Long getIfPrimaryTerm()
    • getRefreshPolicy

      public @Nullable RefreshPolicy getRefreshPolicy()
    • getRetryOnConflict

      public @Nullable Integer getRetryOnConflict()
    • getTimeout

      public @Nullable String getTimeout()
    • getWaitForActiveShards

      public @Nullable String getWaitForActiveShards()
    • getQuery

      public @Nullable Query getQuery()
    • getAbortOnVersionConflict

      public @Nullable Boolean getAbortOnVersionConflict()
    • getBatchSize

      public @Nullable Integer getBatchSize()
    • getMaxDocs

      public @Nullable Integer getMaxDocs()
    • getMaxRetries

      public @Nullable Integer getMaxRetries()
    • getPipeline

      public @Nullable String getPipeline()
    • getRequestsPerSecond

      public @Nullable Float getRequestsPerSecond()
    • getShouldStoreResult

      public @Nullable Boolean getShouldStoreResult()
    • getSlices

      public @Nullable Integer getSlices()
    • getScriptName

      public @Nullable String getScriptName()
    • getIndexName

      public @Nullable String getIndexName()
      Since:
      4.4
    • getScriptData

      public @Nullable ScriptData getScriptData()
      Since:
      4.4