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

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

Properties

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

Inheritors

UpdateSource
Link copied to clipboard
UpdateSource
Link copied to clipboard