// 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_queries1",
  settings: {
    analysis: {
      analyzer: {
        wildcard_prefix: {
          type: "custom",
          tokenizer: "standard",
          filter: ["lowercase", "wildcard_edge_ngram"],
        },
      },
      filter: {
        wildcard_edge_ngram: {
          type: "edge_ngram",
          min_gram: 1,
          max_gram: 32,
        },
      },
    },
  },
  mappings: {
    properties: {
      query: {
        type: "percolator",
      },
      my_field: {
        type: "text",
        fields: {
          prefix: {
            type: "text",
            analyzer: "wildcard_prefix",
            search_analyzer: "standard",
          },
        },
      },
    },
  },
});
console.log(response);
----
