You are here

protected function SearchApiSolrBackend::alterSolrResponseBody in Search API Solr 8.2

Same name and namespace in other branches
  1. 8 src/Plugin/search_api/backend/SearchApiSolrBackend.php \Drupal\search_api_solr\Plugin\search_api\backend\SearchApiSolrBackend::alterSolrResponseBody()

Allow custom changes to the response body before extracting values.

Parameters

string $body:

\Drupal\search_api\Query\QueryInterface $query:

1 call to SearchApiSolrBackend::alterSolrResponseBody()
SearchApiSolrBackend::search in src/Plugin/search_api/backend/SearchApiSolrBackend.php
Options on $query prefixed by 'solr_param_' will be passed natively to Solr as query parameter without the prefix. For example you can set the "Minimum Should Match" parameter 'mm' to '75%' like this:
1 method overrides SearchApiSolrBackend::alterSolrResponseBody()
AbstractSearchApiSolrMultilingualBackend::alterSolrResponseBody in src/Plugin/search_api/backend/AbstractSearchApiSolrMultilingualBackend.php
@inheritdoc

File

src/Plugin/search_api/backend/SearchApiSolrBackend.php, line 2456

Class

SearchApiSolrBackend
Apache Solr backend for search api.

Namespace

Drupal\search_api_solr\Plugin\search_api\backend

Code

protected function alterSolrResponseBody(&$body, QueryInterface $query) {
}