You are here

public function SearchApiSolrBackend::getSolrFieldNames in Search API Solr 4.x

Same name and namespace in other branches
  1. 8.3 src/Plugin/search_api/backend/SearchApiSolrBackend.php \Drupal\search_api_solr\Plugin\search_api\backend\SearchApiSolrBackend::getSolrFieldNames()
  2. 8 src/Plugin/search_api/backend/SearchApiSolrBackend.php \Drupal\search_api_solr\Plugin\search_api\backend\SearchApiSolrBackend::getSolrFieldNames()
  3. 8.2 src/Plugin/search_api/backend/SearchApiSolrBackend.php \Drupal\search_api_solr\Plugin\search_api\backend\SearchApiSolrBackend::getSolrFieldNames()

Creates a list of all indexed field names mapped to their Solr field names.

The special fields "search_api_id" and "search_api_relevance" are also included. Any Solr fields that exist on search results are mapped back to to their local field names in the final result set.

Parameters

\Drupal\search_api\IndexInterface $index: The Search Api index.

bool $reset: (optional) Whether to reset the static cache.

Throws

\Drupal\search_api\SearchApiException

Overrides SolrBackendInterface::getSolrFieldNames

See also

SearchApiSolrBackend::search()

11 calls to SearchApiSolrBackend::getSolrFieldNames()
SearchApiSolrBackend::extractFacets in src/Plugin/search_api/backend/SearchApiSolrBackend.php
Extracts facets from a Solarium result set.
SearchApiSolrBackend::extractResults in src/Plugin/search_api/backend/SearchApiSolrBackend.php
Extract results from a Solr response.
SearchApiSolrBackend::getQueryFulltextFields in src/Plugin/search_api/backend/SearchApiSolrBackend.php
Don't return the big twm_suggest field.
SearchApiSolrBackend::getRequiredFields in src/Plugin/search_api/backend/SearchApiSolrBackend.php
Get the list of fields Solr must return as result.
SearchApiSolrBackend::indexFieldsUpdated in src/Plugin/search_api/backend/SearchApiSolrBackend.php
Checks if the recently updated index had any fields changed.

... See full list

File

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

Class

SearchApiSolrBackend
Apache Solr backend for search api.

Namespace

Drupal\search_api_solr\Plugin\search_api\backend

Code

public function getSolrFieldNames(IndexInterface $index, $reset = FALSE) {

  // Backwards compatibility.
  return $this
    ->getLanguageSpecificSolrFieldNames(LanguageInterface::LANGCODE_NOT_SPECIFIED, $index, $reset);
}