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

27 lines
580 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.indices.create({
index: "index2",
mappings: {
properties: {
comment: {
type: "text",
analyzer: "standard",
term_vector: "with_positions_offsets",
fields: {
english: {
type: "text",
analyzer: "english",
term_vector: "with_positions_offsets",
},
},
},
},
},
});
console.log(response);
----