Define custom analyzers for an index

Created on 13 June 2014, over 11 years ago
Updated 9 September 2025, 5 days ago

Problem/Motivation

Specifying a custom analyzer on an index allows you to set custom tokenizers and token filters.

In #2278787-2: Wildcard? , there was interest in using the edge n-gram tokenizer to allow searching with a wildcard.

Note that the edge n-gram tokenzier works particularly well when used to tokenize fields that are used for Elasticsearch's search-as-you-type functionality (which is exposed with Elasticsearch Connector's integration with Search API Autocomplete ).

Proposed resolution

Make it possible to define custom analyzers for an index.

Remaining tasks

  1. Write a patch
    • Note that a patch for 7.x-1.x was posted in #4 - might be possible to build off this one.
  2. Review and feedback
  3. RTBC and feedback
  4. Commit
  5. Release

User interface changes

To be determined.

API changes

To be determined.

Data model changes

To be determined.

Original report by @skek

This issue has been discussed here but as it is not exactly connected with the wildcards we have moved it as a separate one: #2278787-2: Wildcard?

Feature request
Status

Active

Version

8.0

Component

Code

Created by

🇧🇬Bulgaria skek

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024