Original title was "Solarium dropped support for PHP 7 and changes definition of CreateHandle"
I upgraded from search_api_solr 4.2.12 to 4.3.0 which requires solarium to be upgraded.
When upgrading to Drupal 10, I managed to upgrade solarium/solarium from 6.2.8 to 6.3.3. I started getting the following fatal:
Fatal error: Declaration of Drupal\search_api_pantheon\Solarium\PantheonCurl::createHandle($request, $endpoint) must be compatible with Solarium\Core\Client\Adapter\Curl::createHandle(Solarium\Core\Client\Request $request, Solarium\Core\Client\Endpoint $endpoint): CurlHandle in /code/web/modules/contrib/search_api_pantheon/src/Solarium/PantheonCurl.php on line 16
We need to change the class so it conforms to the new footprint.
Also, after this correction, we need to identify the changes we need to make to schema.xml to support Search API Solr 4.3.0 as when I search, I recieve no results and dblog gets spammed with
Apache Tomcat/7.0.68 - Error report HTTP Status 400 - can not use FieldCache on unindexed field: boost_documenttype Status reportmessage can not use FieldCache on unindexed field: boost_documentdescription The request sent by the client was syntactically incorrect.Apache Tomcat/7.0.68
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | search_api_pantheon-solarium_dropped_support-3398820-3.patch | 1.15 KB | generalredneck |
Issue fork search_api_pantheon-3398820
Show commands
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
generalredneckJust in case a patch is needed:
Comment #4
generalredneckLooks like there is more to this... I suspect that 3.0.x of this module is not compatible with Search API 4.3.x. The schema.xmls vary wildly and I get errors while searching with it installed like
Looking through schema.xml, there is infact not any boost_document field type installed.
Comment #5
damienmckennaI think it might be better to change composer.json to limit the versions of search_api_solr that are compatible.
v3 is an EOL branch, it's recommended to upgrade to Solr 8 and v8 of this module.
Comment #6
henk commentedHi,
I had the similar problem:
After downgrade Search_api_solr 4.2.x, index start working. Something is not compatible with the latest version of search_api_solr module.
I tested on new index with only Node "Title" added, to exclude problems with some format of data, and was not working on search_api_solr 4.3.1.
In logs I had similar message "can not use FieldCache on unindexed field: boost_***". In release logs I see that there was a cache changes in search_api_solr 4.3.x maybe there are not compatible with the pantheon config?
Comment #7
henk commented#3 patch is fixing in Drupal 10 PantheonCurl incompatibility problem confirmed. So it is temporary solution.
Comment #8
brooke_heaton commentedJust here to report that I am seeing the same errors as noted in $6. I see the following error on my search View:
can not use FieldCache on unindexed field: boost_documenttype Status reportmessage can not use FieldCache on unindexed field: boost_documentdescription The request sent by the client was syntactically incorrect.I am using the following modules on Drupal 9.5.11:
Search API (search_api) 8.x-1.30
Search API Pantheon (search_api_pantheon) 8.1.4
Search API Solr Autocomplete (search_api_solr_autocomplete) 4.2.9
Search API Solr Legacy (search_api_solr_legacy) 4.2.9
Search API Solr (search_api_solr) 4.2.9
Comment #9
roshnykunjappan commentedClosing this issue as Search API Pantheon 3.0.2 is unsupported now.