Search Api Solr view cannot retrieve node. ID incorrect?

by Tim   Last Updated October 18, 2019 18:07 PM

  • Drupal Core 8.7.8
  • Search API 8.x-1.14
  • Search API Solr 8.x-3.7
  • Solr 8.1
  • Solarium 5.1.4

The current Solr config is exported and loaded in Solr.
Indexing from Drupal works.

The Solr Index View shows the correct number of results in the header, but shows the "no results" content.

Looking in the logs I see:

Drupal\search_api\SearchApiException: The datasource with ID 'lhltl6--entity:node' could not be retrieved for index 'Solr index'. in Drupal\search_api\Entity\Index->getDatasource() (line 369 of web/modules/contrib/search_api/src/Entity/Index.php).

If I look at the indexed data in Solr the IDs look like this:

    "id":"lhltl6-solr_index-entity:node/100:de",

When the solr ID is created, the name of the index seems to be added to the ID. But when the document is read in the view, the index ID would seem to be missing.

The View seems to be querying the correct rows, but is trying to retrieve the documents with an incorrect ID.

Tags : 8 search


Related Questions


Updated May 25, 2016 08:03 AM

Updated July 11, 2015 13:03 PM

Updated June 12, 2015 11:03 AM

Updated June 18, 2015 02:03 AM