Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
Enabling facet_api without search_api is possible (not marked as dependecy) but it troubles the config screens.
Log:
Got error 'PHP message: Uncaught PHP Exception Drupal\\Component\\Plugin\\Exception\\PluginNotFoundException: "The "search_api_index" entity type does not exist." at /var/www/drupal8/core/lib/Drupal/Core/Entity/EntityTypeManager.php line 130
IRC chat log:
Novitsh: Nick_vh: can facet_api run without search_api?:
Nick_vh: yes, it should be possible to run - but I don’t think it is fully independent yet
Proposed resolution
Mark search_api as dependency.- Make it standalone.
Remaining tasks
@todo
Data model changes
@tocheck
Comments
Comment #2
Novitsh CreditAttribution: Novitsh at Colruyt Group Services commentedComment #3
borisson_We should make sure that facet api also works for core search, so search_api shouldn't be a hard dependency.
Comment #4
marthinal CreditAttribution: marthinal commentedIntegrationTest is using Search API test modules.
So we need to change it.
Also we have a hardcoded usage here:
Comment #5
borisson_The hardcoded usage of search_api is in the SearchApiViews facet source classes, this is ok.
So this means that we should basically only decouple the tests?
Comment #6
marthinal CreditAttribution: marthinal commentedYes. Maybe create a FacetAPI submodule(something like https://www.drupal.org/project/search_facetapi) for the Core Search. And then enable the Core SEarch module +the submodule. In this case we could try to reproduce the current Integration tests but using the Core Search...
Comment #7
borisson_Addded a new issue for creating the core facet source. #2612084: Add a new facet source for drupal core
Comment #9
borisson_Opened up an issue for the test (#2613186: Untangle the integration test from search api). Other remarks from this issue have been fixed. Thanks for the report @Novitsh