// This file is autogenerated, DO NOT EDIT
// Use `node scripts/generate-docs-examples.mjs` to generate the docs examples

[source, js]
----
const response = await client.indices.create({
  index: "my-index-000001",
  mappings: {
    properties: {
      tag: {
        type: "text",
        fielddata: true,
        fielddata_frequency_filter: {
          min: 0.001,
          max: 0.1,
          min_segment_size: 500,
        },
      },
    },
  },
});
console.log(response);
----
