28 lines
477 B
Plaintext
28 lines
477 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({
|
|
query: {
|
|
pinned: {
|
|
docs: [
|
|
{
|
|
_index: "my-index-000001",
|
|
_id: "1",
|
|
},
|
|
{
|
|
_id: "4",
|
|
},
|
|
],
|
|
organic: {
|
|
match: {
|
|
description: "iphone",
|
|
},
|
|
},
|
|
},
|
|
},
|
|
});
|
|
console.log(response);
|
|
----
|