RequestBuilder.php in Search API Solr 8.3
File
src/Solarium/Autocomplete/RequestBuilder.php
View source
<?php
namespace Drupal\search_api_solr\Solarium\Autocomplete;
use Solarium\Core\Client\Request;
use Solarium\Core\Query\AbstractQuery;
use Solarium\Core\Query\AbstractRequestBuilder;
class RequestBuilder extends AbstractRequestBuilder {
public function build(AbstractQuery $query) : Request {
$request = parent::build($query);
foreach ($query
->getComponents() as $component) {
$componentBuilder = $component
->getRequestBuilder();
if ($componentBuilder) {
$request = $componentBuilder
->buildComponent($component, $request);
}
}
return $request;
}
}