UpdateSource

sealed class UpdateSource<S : BaseDocSource>

Represents an update action's source. Has 2 flavors:

  • WithDoc makes a partial update of the existing document.

  • WithScript runs the specified script and indexes its result.

Types

Link copied to clipboard
class WithDoc<S : BaseDocSource>(val doc: S, val docAsUpsert: Boolean? = null, upsert: S? = null, detectNoop: Boolean? = null) : UpdateSource<S>
Link copied to clipboard
class WithScript<S : BaseDocSource>(val script: Script, val scriptedUpsert: Boolean? = null, upsert: S? = null, detectNoop: Boolean? = null) : UpdateSource<S>

Properties

Link copied to clipboard
Link copied to clipboard
val upsert: S?

Inheritors

Link copied to clipboard
Link copied to clipboard