24 lines
430 B
Plaintext
24 lines
430 B
Plaintext
// This file is autogenerated, DO NOT EDIT
|
|
// Use `node scripts/generate-docs-examples.js` to generate the docs examples
|
|
|
|
[source, js]
|
|
----
|
|
const response = await client.search({
|
|
index: "my-index-000001",
|
|
query: {
|
|
match: {
|
|
"user.id": "kimchy",
|
|
},
|
|
},
|
|
docvalue_fields: [
|
|
"user.id",
|
|
"http.response.*",
|
|
{
|
|
field: "date",
|
|
format: "epoch_millis",
|
|
},
|
|
],
|
|
});
|
|
console.log(response);
|
|
----
|