Files
elasticsearch-js/docs/doc_examples/fd0cd8ecd03468726b59a605eea06d75.asciidoc
github-actions[bot] b4eb8e5441 [Backport 8.15] Added/updated snippets for docs (#2319)
(cherry picked from commit f737290d10)

Co-authored-by: Josh Mock <joshua.mock@elastic.co>
2024-07-29 17:10:42 -05:00

41 lines
721 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: "test",
query: {
bool: {
must: [
{
match: {
content: "2016",
},
},
],
should: [
{
rank_feature: {
field: "pagerank",
},
},
{
rank_feature: {
field: "url_length",
boost: 0.1,
},
},
{
rank_feature: {
field: "topics.sports",
boost: 0.4,
},
},
],
},
},
});
console.log(response);
----