- Merge request !26Issue #3302025: Backwards compatibility after library change in 3186932 → (Closed) created by Unnamed author
- 🇨🇦Canada mparker17 UTC-4
Hello @jefuri, we recently merged 📌 Investigate search_api_opensearch as base for elasticsearch_connector Fixed , and we stopped using the ruflin/elastica library in the process, because it didn't have stable support for ElasticSearch 8 (we are using the official elasticsearch/elasticsearch library instead).
Unfortunately, this means that there isn't really an equivalent to the PrepareIndexEvent that you changed in your merge request.
The closest event in the new code might be the new
\Drupal\elasticsearch_connector\Event\IndexCreatedEvent
, which has a\Drupal\elasticsearch_connector\Event\IndexCreatedEvent::getIndex()
function, which returns an\Drupal\search_api\IndexInterface
, that you can call->id()
on to get the Index name.In theory, we could add a
\Drupal\elasticsearch_connector\Event\IndexCreatedEvent::getIndexName()
function (we initially left it out for parity with the Search API OpenSearch module → )... but since you would have to change the event that your code is subscribed to anyway, we're not sure if you will still need it.May we trouble you to review this (feel free to ask any questions here and we'll try to get back to you) in the latest 8.0.x-dev release → and see if it meets your needs? If it does not, may we trouble you to change this issue's "Status" back to "Needs work"?
(I'm cleaning up issues in the 8.0.x-dev branch as part of a big review of open issues for 🌱 Plan for 8.0.0-alpha release Active : thank you for your patience with me!)
- Issue was unassigned.
- Status changed to Closed: outdated
17 days ago 8:33pm 19 September 2025