toggle menu
search-client
common
switch theme
search in API
search-client
/
com.jillesvangurp.ktsearch
/
GetDocumentResponse
Get
Document
Response
@
Serializable
data
class
GetDocumentResponse
(
val
index
:
String
,
val
type
:
String
?
,
val
id
:
String
,
val
version
:
Long
?
,
val
source
:
JsonObject
?
,
val
seqNo
:
Int
?
,
val
primaryTerm
:
Int
?
,
val
found
:
Boolean
,
val
routing
:
String
?
=
null
,
val
fields
:
JsonObject
?
=
null
)
:
SourceInformation
Members
Members & Extensions
Constructors
Get
Document
Response
Link copied to clipboard
constructor
(
index
:
String
,
type
:
String
?
,
id
:
String
,
version
:
Long
?
,
source
:
JsonObject
?
,
seqNo
:
Int
?
,
primaryTerm
:
Int
?
,
found
:
Boolean
,
routing
:
String
?
=
null
,
fields
:
JsonObject
?
=
null
)
Properties
fields
Link copied to clipboard
val
fields
:
JsonObject
?
=
null
found
Link copied to clipboard
val
found
:
Boolean
id
Link copied to clipboard
@
SerialName
(
value
=
"_id"
)
open
override
val
id
:
String
index
Link copied to clipboard
@
SerialName
(
value
=
"_index"
)
val
index
:
String
primary
Term
Link copied to clipboard
@
SerialName
(
value
=
"_primary_term"
)
open
override
val
primaryTerm
:
Int
?
routing
Link copied to clipboard
@
SerialName
(
value
=
"_routing"
)
val
routing
:
String
?
=
null
seq
No
Link copied to clipboard
@
SerialName
(
value
=
"_seq_no"
)
open
override
val
seqNo
:
Int
?
source
Link copied to clipboard
@
SerialName
(
value
=
"_source"
)
open
override
val
source
:
JsonObject
?
type
Link copied to clipboard
@
SerialName
(
value
=
"_type"
)
val
type
:
String
?
version
Link copied to clipboard
@
SerialName
(
value
=
"_version"
)
open
override
val
version
:
Long
?
Functions
document
Link copied to clipboard
inline
fun
<
T
>
SourceInformation
.
document
(
json
:
Json
=
DEFAULT_JSON
)
:
T