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

44 lines
943 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: "my-index-000001",
settings: {
analysis: {
filter: {
my_shingle_filter: {
type: "shingle",
min_shingle_size: 5,
max_shingle_size: 5,
output_unigrams: false,
},
my_minhash_filter: {
type: "min_hash",
hash_count: 1,
bucket_count: 512,
hash_set_size: 1,
with_rotation: true,
},
},
analyzer: {
my_analyzer: {
tokenizer: "standard",
filter: ["my_shingle_filter", "my_minhash_filter"],
},
},
},
},
mappings: {
properties: {
fingerprint: {
type: "text",
analyzer: "my_analyzer",
},
},
},
});
console.log(response);
----