I tried to configure search_api_attachments with Solr Extractor as the extraction method of choice.
After configuring everything correctly (using the same configuration as with a drupal 7 instance, where everything worked), I get the following error:
AH01071: Got error 'PHP message: Error: Call to undefined method Drupal\\search_api_solr\\Plugin\\search_api\\backend\\SearchApiSolrBackend::getSolrConnection() in /var/www/drupalvm/drupal/docroot/modules/contrib/search_api_attachments/src/Plugin/search_api_attachments/SolrExtractor.php on line 73 #0 /var/www/drupalvm/drupal/docroot/modules/contrib/search_api_attachments/src/Plugin/search_api/processor/FilesExtrator.php(213): Drupal\\search_api_attachments\\Plugin\\search_api_attachments\\SolrExtractor->extract(Object(Drupal\\file\\Entity\\File)) #1 /var/www/drupalvm/drupal/docroot/modules/contrib/search_api_attachments/src/Plugin/search_api/processor/FilesExtrator.php(185): Drupal\\search_api_attachments\\Plugin\\search_api\\processor\\FilesExtrator->extractOrGetFromCache(Object(Drupal\\file\\Entity\\File), Object(Drupal\\search_api_attachments\\Plugin\\search_api_attachments\\SolrExtractor)) #2 /var/www/drupalvm/drupal/docroot/modules/contrib/search_api/src/Item/Item.php(245): Drupal\\search_api_attachments\\Plugin\\search_api\\processor\\FilesExtrato...
Now the class Drupal\\search_api_solr\\Plugin\\search_api\\backend\\SearchApiSolrBackend does contain a method called "getSolrConnector" but does not contain a method called "getSolrConnection". Is this a simple typo?
Either way, I can't use the Solr Extractor configuration at the moment.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | solr_extractor_causes-2862528-3.patch | 838 bytes | michaellander |
Comments
Comment #2
izus commentedI don't think it's a typo but probabely a modification in search_api_solr that was not yet detected and changed in search_api_attachments yet.
if you debugged it locally, please attach a patch here so that we share the correction
Thanks
Comment #3
michaellander commentedThis patch should do it. You'll also need the patch from #2831801: Add support for extract to Connector API.
Comment #4
mkalkbrennerAt least the patch in #3 leverages the current API of Search API Solr 8.x-1.0-beta2.
We now have a test for extraction as well:
Comment #5
mkalkbrennerThis issue is obsolete when #2696901: Leverage extraction support of Search API Solr integration, fix incompatibilities for various solr service providers incl. Acquia Search gets commited.
Comment #6
izus commentedThe issue mentionned in #5 was merged