[Backport 8.15] Added/updated snippets for docs (#2319)

(cherry picked from commit f737290d10)

Co-authored-by: Josh Mock <joshua.mock@elastic.co>
This commit is contained in:
github-actions[bot]
2024-07-29 17:10:42 -05:00
committed by GitHub
parent ccf9fcbd93
commit b4eb8e5441
3326 changed files with 67843 additions and 6751 deletions

View File

@ -4,21 +4,13 @@
[source, js]
----
const response = await client.search({
body: {
query: {
multi_match: {
query: 'Jon',
type: 'cross_fields',
fields: [
'first',
'first.edge',
'last',
'last.edge'
]
}
}
}
})
console.log(response)
query: {
multi_match: {
query: "Jon",
type: "cross_fields",
fields: ["first", "first.edge", "last", "last.edge"],
},
},
});
console.log(response);
----