elastic / elasticsearch

Free and Open, Distributed, RESTful Search Engine
https://www.elastic.co/products/elasticsearch
Other
69.51k stars 24.6k forks source link

Support for multiple files in synonym_graph token filter #105780

Open ganiamine opened 6 months ago

ganiamine commented 6 months ago

Description

Currently, the synonym_graph token filter in Elasticsearch supports loading synonyms from a single file using the synonyms_path parameter. However, there are scenarios where it would be beneficial to support loading synonyms from multiple files.

This feature request proposes extending the synonym_graph token filter to support specifying multiple synonym files.

In our specific use case : Consider an e-commerce platform where different departments manage their own synonym sets. By supporting multiple synonym files, each department can maintain its own file, making it easier to manage and update synonym data independently.

elasticsearchmachine commented 6 months ago

Pinging @elastic/es-search (Team:Search)

elasticsearchmachine commented 2 months ago

Pinging @elastic/es-search-relevance (Team:Search Relevance)