Files
elasticsearch-js/docs/doc_examples/3487e60e1ae9d4925ce540cd63574385.asciidoc
2024-07-29 17:10:05 -05:00

25 lines
457 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: {
boosting: {
positive: {
term: {
text: "apple",
},
},
negative: {
term: {
text: "pie tart fruit crumble tree",
},
},
negative_boost: 0.5,
},
},
});
console.log(response);
----