@@ -12,8 +12,8 @@ import kotlin.time.Duration
12
12
13
13
interface SourceInformation {
14
14
val id: String
15
- val seqNo: Int ?
16
- val primaryTerm: Int ?
15
+ val seqNo: Long ?
16
+ val primaryTerm: Long ?
17
17
val version: Long?
18
18
val source: JsonObject ?
19
19
}
@@ -33,9 +33,9 @@ data class DocumentIndexResponse(
33
33
@SerialName(" _shards" )
34
34
val shards : Shards ,
35
35
@SerialName(" _seq_no" )
36
- override val seqNo : Int ,
36
+ override val seqNo : Long ,
37
37
@SerialName(" _primary_term" )
38
- override val primaryTerm : Int ,
38
+ override val primaryTerm : Long ,
39
39
@SerialName(" _source" )
40
40
override val source : JsonObject ? = null ,
41
41
): SourceInformation
@@ -44,8 +44,8 @@ suspend inline fun <reified T> SearchClient.indexDocument(
44
44
target : String ,
45
45
document : T ,
46
46
id : String? = null,
47
- ifSeqNo : Int ? = null,
48
- ifPrimaryTerm : Int ? = null,
47
+ ifSeqNo : Long ? = null,
48
+ ifPrimaryTerm : Long ? = null,
49
49
opType : OperationType ? = null,
50
50
pipeline : String? = null,
51
51
refresh : Refresh ? = null,
@@ -82,8 +82,8 @@ suspend fun SearchClient.indexDocument(
82
82
target : String ,
83
83
serializedJson : String ,
84
84
id : String? = null,
85
- ifSeqNo : Int ? = null,
86
- ifPrimaryTerm : Int ? = null,
85
+ ifSeqNo : Long ? = null,
86
+ ifPrimaryTerm : Long ? = null,
87
87
opType : OperationType ? = null,
88
88
pipeline : String? = null,
89
89
refresh : Refresh ? = null,
@@ -132,9 +132,9 @@ data class GetDocumentResponse(
132
132
@SerialName(" _source" )
133
133
override val source : JsonObject ? ,
134
134
@SerialName(" _seq_no" )
135
- override val seqNo : Int ? ,
135
+ override val seqNo : Long ? ,
136
136
@SerialName(" _primary_term" )
137
- override val primaryTerm : Int ? ,
137
+ override val primaryTerm : Long ? ,
138
138
val found : Boolean ,
139
139
@SerialName(" _routing" )
140
140
val routing : String? = null ,
@@ -144,8 +144,8 @@ data class GetDocumentResponse(
144
144
suspend fun SearchClient.deleteDocument (
145
145
target : String ,
146
146
id : String ,
147
- ifSeqNo : Int ? = null,
148
- ifPrimaryTerm : Int ? = null,
147
+ ifSeqNo : Long ? = null,
148
+ ifPrimaryTerm : Long ? = null,
149
149
refresh : Refresh ? = null,
150
150
routing : String? = null,
151
151
timeout : Duration ? = null,
0 commit comments