Closed (outdated)
Project:
Search API Solr
Version:
7.x-1.x-dev
Component:
Documentation
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
28 Mar 2017 at 03:01 UTC
Updated:
10 Nov 2020 at 16:37 UTC
Jump to comment: Most recent
Comments
Comment #2
kmcculloch commented@hitfactory I just came across the need for this myself as part of a D7 project migration to PHP 7. In order to bake this configuration into search_api_solr you'd need to either patch it or override the server connection class. Rather than do that for every contrib module that might need it, I submitted a patch to this thread in D7 core:
https://www.drupal.org/node/1081192#comment-12039235
Would be interested to hear if it meets your needs.
Comment #3
drunken monkey#2 does look like it might solve this, yes, thanks!
Otherwise, either override the backend class to incldude the necessary code, or maybe use a hook to call
$server->getSolrConnection()->setStreamContext()early enough during search/indexing.Comment #4
aklump commentedRegister the service class like so:
Create a service class override that sets the context :
Testing using Drupal 7.67 and search_api_solr 7.x-1.14
Comment #5
mkalkbrennerThis issue was closed due to lack of activity over a long period of time. If the issue is still acute for you, feel free to reopen it and describe the current state.