Added/updated snippets for docs (#2318)
This commit is contained in:
36
docs/doc_examples/cd6fa7f63c93bb04824acd3a7d1f8de3.asciidoc
Normal file
36
docs/doc_examples/cd6fa7f63c93bb04824acd3a7d1f8de3.asciidoc
Normal file
@ -0,0 +1,36 @@
|
||||
// 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: {
|
||||
span_not: {
|
||||
include: {
|
||||
span_term: {
|
||||
field1: "hoya",
|
||||
},
|
||||
},
|
||||
exclude: {
|
||||
span_near: {
|
||||
clauses: [
|
||||
{
|
||||
span_term: {
|
||||
field1: "la",
|
||||
},
|
||||
},
|
||||
{
|
||||
span_term: {
|
||||
field1: "hoya",
|
||||
},
|
||||
},
|
||||
],
|
||||
slop: 0,
|
||||
in_order: true,
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
});
|
||||
console.log(response);
|
||||
----
|
||||
Reference in New Issue
Block a user