elasticsearch_connector_ngram_analyzer
8 sites
No security coverage
This module enhances the Elasticsearch connector by adding support for NGram tokenization in text fields. It enables efficient partial text matching, making it ideal for applications requiring flexible search capabilities.
Installation
Install as you would normally install a contributed Drupal module.
See: https://www.drupal.org/node/895232 for further information.
Additional Requirements
- Search Api
- Elasticsearch Connector
Configuration
Apply the Analyzer to Text Fields In your Drupal site, configure the Search API index to use the NGram analyzer for specific fields:
- Go to Configuration > Search and Metadata > Search API.
- Edit the desired Search API index.
- Navigate to the Fields tab.
- For the text fields where you want to enable NGram tokenization, select the NGram type from the field settings.
- Save field data.
Reindex Your Data After applying the NGram analyzer, reindex your data to ensure the new tokenization settings are applied:
- Go to Configuration > Search and Metadata > Search API.
- Click on the Index now button for the relevant index.