Integration with Search API Solr Admin

Created on 27 August 2024, about 1 month ago

Problem/Motivation

I was looking for a module that makes it easy to manage synonyms for clients and also that automatically pushes the synonyms to Solr. I have looked into https://www.drupal.org/project/solr_search_synonym which does exactly what I need. But after experimenting I discovered that the “managed synonyms” requires a reindex after making changes to the synonyms API. After some further digging I found this issue from the Search API module: https://www.drupal.org/project/search_api_solr/issues/3406860 🐛 Schema export does not work when adding ManagedSynonymGraphFilterFactory filter Closed: cannot reproduce , one of the maintainers addressed the issue as well but also explained that Search API won’t support “managed fields”. So then I decided to look into the “search_api_synonym” module, which only supports exporting synonyms to static files, but there is a feature request being worked on to support integration with Solr API: #2924322: Integration with solr API . Luckily it’s not yet merged, because this approach is the same as the “solr_search_synonym” module uses, working with “managed synonyms”.

Proposed resolution

I like to propose a different approach, it involves using the “search_api_solr_admin” module, which is a submodule of “search_api_solr” module and has handy services that can help us out to upload config-set to Solr, which is more in line with Search API. Also this approach won’t require a reindex, because “SynonymGraphFilterFactory” can be only applied on the query analyzer instead of the “ManagedSynonymGraphFilterFactory”.

Feature request
Status

Needs review

Version

2.0

Component

Code

Created by

🇳🇱Netherlands bojan_dev

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024