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