Closed (fixed)
Project:
Search API Solr
Version:
4.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
11 Nov 2024 at 12:38 UTC
Updated:
29 Apr 2026 at 11:13 UTC
Jump to comment: Most recent
Search API SOLR IndexAddSolrDocumentFieldsForm::buildForm() overrides a lot for a minor change to the datasource loading only. In #3484811: Improve the Search API admin UI for adding/editing fields current plan is to break apart buildForm() to make it easier to extend.
Look at the buildForm() method
Extend only the new method
MR
Allow inheriting the updated add index UI
N/A
N/A
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
scott_euser commentedProbably better as 'Postponed' but setting to needs review as it would be good to get this reviewed and ready to go prior to #3484811: Improve the Search API admin UI for adding/editing fields merge.
Comment #4
scott_euser commentedComposer failure is unrelated to this
Comment #5
scott_euser commentedLooks like composer failure is related to #3455217: Automated Drupal 11 compatibility fixes for facets which is the case because this module has a dependency on facets.
Comment #6
mkalkbrennerThis patch break the entire functionality of "Add new Solr Document fields".
The purpose of that feature is to filter the down the normal "Add field" modal to only offer fields that aren't configured yet.
This feature is entirely removed by the merge request.
To test it, you need a "foreign" Solr index not reflecting Drupal's data. By "adding" fields to the Search API Index you make that data available to be searched within Drupal and to build Views based on that data.
Comment #7
scott_euser commentedFixed as per discussion in Slack; thank you for helping me reproduce the error and understand the purpose. I added a comment to the MR to explain the purpose here for future travellers.
Comment #8
scott_euser commentedNote that you need to update to the latest MR in #3484811: Improve the Search API admin UI for adding/editing fields if you are rechecking.
Comment #10
mkalkbrennerComment #11
scott_euser commentedThank you!