com
.
sksamuel
.
elastic4s
.
update
UpdateRequest
Related Doc:
package update
case class
UpdateRequest
(
indexAndType:
IndexAndType
,
id:
String
,
detectNoop:
Option
[
Boolean
] =
None
,
docAsUpsert:
Option
[
Boolean
] =
None
,
fetchSource:
Option
[
FetchSourceContext
] =
None
,
parent:
Option
[
String
] =
None
,
retryOnConflict:
Option
[
Int
] =
None
,
refresh:
Option
[
RefreshPolicy
] =
None
,
routing:
Option
[
String
] =
None
,
script:
Option
[
Script
] =
None
,
scriptedUpsert:
Option
[
Boolean
] =
None
,
timeout:
Option
[
Duration
] =
None
,
version:
Option
[
Long
] =
None
,
versionType:
Option
[
String
] =
None
,
waitForActiveShards:
Option
[
Int
] =
None
,
upsertSource:
Option
[
String
] =
None
,
upsertFields:
Map
[
String
,
Any
] =
Map.empty
,
documentFields:
Map
[
String
,
Any
] =
Map.empty
,
documentSource:
Option
[
String
] =
None
)
extends
BulkCompatibleRequest
with
Product
with
Serializable
Linear Supertypes
Serializable
,
Serializable
,
Product
,
Equals
,
BulkCompatibleRequest
,
AnyRef
,
Any
Ordering
Alphabetic
By Inheritance
Inherited
UpdateRequest
Serializable
Serializable
Product
Equals
BulkCompatibleRequest
AnyRef
Any
Hide All
Show All
Visibility
Public
All
Instance Constructors
new
UpdateRequest
(
indexAndType:
IndexAndType
,
id:
String
,
detectNoop:
Option
[
Boolean
] =
None
,
docAsUpsert:
Option
[
Boolean
] =
None
,
fetchSource:
Option
[
FetchSourceContext
] =
None
,
parent:
Option
[
String
] =
None
,
retryOnConflict:
Option
[
Int
] =
None
,
refresh:
Option
[
RefreshPolicy
] =
None
,
routing:
Option
[
String
] =
None
,
script:
Option
[
Script
] =
None
,
scriptedUpsert:
Option
[
Boolean
] =
None
,
timeout:
Option
[
Duration
] =
None
,
version:
Option
[
Long
] =
None
,
versionType:
Option
[
String
] =
None
,
waitForActiveShards:
Option
[
Int
] =
None
,
upsertSource:
Option
[
String
] =
None
,
upsertFields:
Map
[
String
,
Any
] =
Map.empty
,
documentFields:
Map
[
String
,
Any
] =
Map.empty
,
documentSource:
Option
[
String
] =
None
)
Value Members
final
def
!=
(
arg0:
Any
)
:
Boolean
Definition Classes
AnyRef → Any
final
def
##
()
:
Int
Definition Classes
AnyRef → Any
final
def
==
(
arg0:
Any
)
:
Boolean
Definition Classes
AnyRef → Any
final
def
asInstanceOf
[
T0
]
:
T0
Definition Classes
Any
def
clone
()
:
AnyRef
Attributes
protected[
java.lang
]
Definition Classes
AnyRef
Annotations
@throws
(
...
)
def
detectNoop
(
detectNoop:
Boolean
)
:
UpdateRequest
val
detectNoop
:
Option
[
Boolean
]
def
doc
(
map:
Map
[
String
,
Any
]
)
:
UpdateRequest
def
doc
(
iterable:
Iterable
[(
String
,
Any
)]
)
:
UpdateRequest
def
doc
(
fields: (
String
,
Any
)*
)
:
UpdateRequest
def
doc
(
doc:
String
)
:
UpdateRequest
def
doc
[
T
]
(
t:
T
)
(
implicit
indexable:
Indexable
[
T
]
)
:
UpdateRequest
def
docAsUpsert
(
shouldUpsertDoc:
Boolean
)
:
UpdateRequest
def
docAsUpsert
(
map:
Map
[
String
,
Any
]
)
:
UpdateRequest
def
docAsUpsert
(
iterable:
Iterable
[(
String
,
Any
)]
)
:
UpdateRequest
def
docAsUpsert
(
fields: (
String
,
Any
)*
)
:
UpdateRequest
def
docAsUpsert
[
T
]
(
t:
T
)
(
implicit
arg0:
Indexable
[
T
]
)
:
UpdateRequest
def
docAsUpsert
(
json:
String
)
:
UpdateRequest
val
docAsUpsert
:
Option
[
Boolean
]
val
documentFields
:
Map
[
String
,
Any
]
val
documentSource
:
Option
[
String
]
final
def
eq
(
arg0:
AnyRef
)
:
Boolean
Definition Classes
AnyRef
def
fetchSource
(
includes:
Iterable
[
String
]
,
excludes:
Iterable
[
String
]
)
:
UpdateRequest
def
fetchSource
(
fetch:
Boolean
)
:
UpdateRequest
val
fetchSource
:
Option
[
FetchSourceContext
]
def
finalize
()
:
Unit
Attributes
protected[
java.lang
]
Definition Classes
AnyRef
Annotations
@throws
(
classOf[java.lang.Throwable]
)
final
def
getClass
()
:
Class
[_]
Definition Classes
AnyRef → Any
val
id
:
String
val
indexAndType
:
IndexAndType
final
def
isInstanceOf
[
T0
]
:
Boolean
Definition Classes
Any
final
def
ne
(
arg0:
AnyRef
)
:
Boolean
Definition Classes
AnyRef
final
def
notify
()
:
Unit
Definition Classes
AnyRef
final
def
notifyAll
()
:
Unit
Definition Classes
AnyRef
def
parent
(
parent:
String
)
:
UpdateRequest
val
parent
:
Option
[
String
]
def
refresh
(
refresh:
RefreshPolicy
)
:
UpdateRequest
val
refresh
:
Option
[
RefreshPolicy
]
def
refreshImmediately
:
UpdateRequest
def
retryOnConflict
(
retryOnConflict:
Int
)
:
UpdateRequest
val
retryOnConflict
:
Option
[
Int
]
def
routing
(
routing:
String
)
:
UpdateRequest
val
routing
:
Option
[
String
]
def
script
(
script:
Script
)
:
UpdateRequest
val
script
:
Option
[
Script
]
def
scriptedUpsert
(
upsert:
Boolean
)
:
UpdateRequest
val
scriptedUpsert
:
Option
[
Boolean
]
def
source
[
T
]
(
t:
T
)
(
implicit
arg0:
Indexable
[
T
]
)
:
UpdateRequest
def
sourceAsUpsert
[
T
]
(
t:
T
)
(
implicit
arg0:
Indexable
[
T
]
)
:
UpdateRequest
final
def
synchronized
[
T0
]
(
arg0: ⇒
T0
)
:
T0
Definition Classes
AnyRef
def
timeout
(
duration:
FiniteDuration
)
:
UpdateRequest
val
timeout
:
Option
[
Duration
]
def
upsert
(
doc:
String
)
:
UpdateRequest
def
upsert
[
T
]
(
t:
T
)
(
implicit
indexable:
Indexable
[
T
]
)
:
UpdateRequest
def
upsert
(
iterable:
Iterable
[(
String
,
Any
)]
)
:
UpdateRequest
def
upsert
(
fields: (
String
,
Any
)*
)
:
UpdateRequest
def
upsert
(
map:
Map
[
String
,
Any
]
)
:
UpdateRequest
val
upsertFields
:
Map
[
String
,
Any
]
val
upsertSource
:
Option
[
String
]
def
version
(
version:
Long
)
:
UpdateRequest
val
version
:
Option
[
Long
]
def
versionType
(
versionType:
String
)
:
UpdateRequest
val
versionType
:
Option
[
String
]
final
def
wait
()
:
Unit
Definition Classes
AnyRef
Annotations
@throws
(
...
)
final
def
wait
(
arg0:
Long
,
arg1:
Int
)
:
Unit
Definition Classes
AnyRef
Annotations
@throws
(
...
)
final
def
wait
(
arg0:
Long
)
:
Unit
Definition Classes
AnyRef
Annotations
@throws
(
...
)
def
waitForActiveShards
(
waitForActiveShards:
Int
)
:
UpdateRequest
val
waitForActiveShards
:
Option
[
Int
]
Deprecated Value Members
def
refresh
(
refresh:
String
)
:
UpdateRequest
Annotations
@deprecated
Deprecated
(Since version 6.0.0)
use the typed version, refresh(RefreshPolicy)
Inherited from
Serializable
Inherited from
Serializable
Inherited from
Product
Inherited from
Equals
Inherited from
BulkCompatibleRequest
Inherited from
AnyRef
Inherited from
Any
Ungrouped