Setup

Most likely irrelevant for this issue, but here we go:

  • Solr version: 8.11.2
  • Drupal Core version: cross site index, some 9.5.11, some 10.0.11
  • Search API version: patched 1.x-dev
  • Search API Solr version: patched 4.3.0
  • Configured Solr Connector: Standard

Issue

The way \Drupal\search_api_solr_devel\Controller\DevelController checks whether the datasource indexes an entity type, and the way it generates item ids, it basically only works with the default data sources or if you carefully choose your datasource plugin id and use the same ids. This could leverage more of the API to be a little bit more agnostic about the data sources in use.

Proposed resolution

Ask the datasource what entity type it wants to provide data for and to generate the item id for the entity.

STR

Write your own datasource that doesn't use ":entity_type_id" as suffix of the plugin id and/or uses different syntax for the item ids than "entity id:language id". The controller could provide data for these as well, but it doesn't.

CommentFileSizeAuthor
#2 3390699-02.patch1.67 KBfeyp

Comments

FeyP created an issue. See original summary.

feyp’s picture

Assigned: feyp » Unassigned
Status: Active » Needs review
StatusFileSize
new1.67 KB

Attached is a patch against 4.x-dev.

mkalkbrenner’s picture

Status: Needs review » Reviewed & tested by the community

  • mkalkbrenner committed 1283755d on 4.x
    Issue #3390699 by FeyP, mkalkbrenner: Make DevelController more data...
mkalkbrenner’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.