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

23 lines
606 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.termvectors({
index: "imdb",
doc: {
plot: "When wealthy industrialist Tony Stark is forced to build an armored suit after a life-threatening incident, he ultimately decides to use its technology to fight against evil.",
},
term_statistics: true,
field_statistics: true,
positions: false,
offsets: false,
filter: {
max_num_terms: 3,
min_term_freq: 1,
min_doc_freq: 1,
},
});
console.log(response);
----