I'm trying to use Search_api_solr and search-api.
I install the required modules and run the solr server and create a core.
But when I'm trying to add a server to my drupal 8 site, an error appears
Solarium\Exception\UnexpectedValueException: Neither collection nor core set. in Solarium\Core\Client\Endpoint->getBaseUri() (line 299 of /var/www/html/vendor/solarium/solarium/src/Core/Client/Endpoint.php).
I try to change the following block in Endpoint.php file to my data but it's not working.
protected $options = [
'scheme' => 'http',
'host' => 'xx.xx.xx.x',
'port' => 8983,
'path' => '/solr/',
'collection' => null,
'core' => 'my_core',
'timeout' => 5,
'leader' => false,
];
also, should the host include the http:// or only the ip address? However, I try all above with no luck. Any advice. Thanks in advance.