Prevent override SOLR field definitions with Config field definition

Created on 17 March 2020, almost 5 years ago
Updated 23 January 2025, 6 days ago

Beginning on "search_api_solr 8.x-3.0" a "buildFieldDefinitions()" in "src/SolrFieldManager" is using luke query to take field definitions and then applying on them (or adding) field definitions from Config Definition. In case when a field is on SOLR index as well on configuration that cause a field definitions is overriden by (new SolrFieldDefinition(['schema' => ''])";

We have a field added to index with "@SearchApiProcessor()" annotation, the field is implementing "ConfigurablePropertyInterface" which should allow us to set a configuration to the field from '/admin/config/search/search-api/index/{index_name}/fields'.

πŸ› Bug report
Status

Needs work

Version

4.0

Component

Code

Created by

πŸ‡΅πŸ‡±Poland relim

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.

  • πŸ‡ΊπŸ‡¦Ukraine Panchuk Volyn, Lutsk

    Patch #1 is not applicable for Search API Solr v4.3.4, fixed conflicts with the latest updates, but I had no opportunity to test it enough.

Production build 0.71.5 2024