- Issue created by @kdborg@gmail.com
- 🇨🇦Canada kdborg@gmail.com
This patch contains the code based on the feature request for version 7 ✨ Add Search API data source implementation Needs work .
The patch also contains the following patches:
"drupal/elasticsearch_connector": {
"3522107: Connect to Elastic Cloud": " https://www.drupal.org/files/issues/2025-07-13/elasticserach_connector-e... → ",
"3470901: Full Date data type": " https://www.drupal.org/files/issues/2025-07-13/elasticsearch_connector-f... → ",
"3535733: Range Filters patch": " https://www.drupal.org/files/issues/2025-07-13/elasticsearch_connector-r... → "
} - 🇨🇦Canada kdborg@gmail.com
Patch 3 removes the reference to the non-existent event subscriber.
- 🇨🇦Canada mparker17 UTC-4
Awesome, thanks! I'll take a look at the in more detail tomorrow!
- Merge request !100Issue #3540361: Add Search API data source implementation → (Open) created by mparker17
- 🇨🇦Canada mparker17 UTC-4
Hmm... it seems like the patch doesn't apply cleanly to
8.0.x
; a brief look suggests the patch tries to re-apply the fix for the phpstan deprecation warning I fixed yesterday, so I removed that part of the patch file and the rest applied cleanly.I committed your code to a merge request to make it easier for me to review.
- 🇨🇦Canada mparker17 UTC-4
I ran phpcbf to fix some of the coding standards issues automatically; but there are a few lints remaining that it cannot fix automatically.
I also noticed that the patch in #4 includes the patches from 🐛 Range Searches Active and 🐛 Upgrade path for full_date data type Active : merging those changes prematurely will cause issues in those branches, and may miss improvements made to the code in those issues; so I'm going to reverse those patches in the merge request (if you have applied any other patches, that would be helpful to know)!
- 🇨🇦Canada kdborg@gmail.com
@mparker17 I'm in the process of creating a patch for the 8.0.x branch.
- 🇨🇦Canada mparker17 UTC-4
Okay! I'll hold off on making any more changes to the merge request until you're done! Thanks again!
- 🇨🇦Canada kdborg@gmail.com
A new patch based off of the 8.0.x-dev branch.
The patch also contains the following patches:
Install:
- composer require drupal/elasticsearch_connector:8.0.x-dev
- Add patch:
"drupal/elasticsearch_connector": {
"3549361: ElasticSearch document source": " https://www.drupal.org/files/issues/2025-08-09/elasticsearch_connector-s... → "
}
Recommended modules:
- When using ElasticCloud, you will need the Key module.
- When using Facets Exposed Filters, you will need the Better Exposed Filters module.
Usage:
- Add a key for your ElasticCloud account under Configuration -> System -> Keys
- Create a server to the ElasticCloud Endpoint using the key.
- Add an index:
- Use the Elasticsearch Document for indexes created on Elastic Cloud or other created indexes.
- There is a "Real ElasticCloud Index ID" field where you can enter in the proper id for the search index. If not set, it will use the index id from Drupal.
- Add the "_id" field to the index as it is required.
- Add a view using the created index.
- In the View, under the Advanced Settings and Query settings, select the "Skip access checking".