Any update on this? To me it seems nodespark/des-connector should get an 8.x branch/version to make it work with ES8.
- heddn Nicaragua
I opened https://github.com/nodespark/des-connector/issues/20 to get the ball rolling on 8.x. We are working against an EOL of ES 7 at this point per https://www.elastic.co/support/eol#elasticsearch. Once ES 9 is released, 7.x will no longer be supported.
- 🇻🇳Vietnam Dinh Bao Tran
8.0.x branch already removed
nodespark/des-connector
dependency and useruflin/Elastica
directly #3186932: Use ruflin/Elastica instead of nodespark/des-connector →The Elastica folks are working on Elasticsearch 8.x support with good progress https://github.com/ruflin/Elastica/pull/2181, so when it landed we should create 8.x branch from 8.0.x depend on that new Elastica version.
However from what I see 8.x-7.x is diverged from 8.0.x, so before creating 8.x branch, changes from 8.x-7.x should be forward ported to 8.0.x.
- heddn Nicaragua
I missed the commit https://git.drupalcode.org/project/elasticsearch_connector/-/commit/51d1.... Besides forward porting 7.x patches, what else is needed for 8.x support?
- 🇩🇪Germany a.dmitriiev
if you check this version of
nodespark/des-connector
https://github.com/nodespark/des-connector/blame/7.x/composer.json , the one that is required for 8.x-7.0alpha4, it is already also based onruflin/Elastica
.I think there is some clarity missing in the project development. There is this 8.0.x branch that was an attempt to get rid of
nodespark/des-connector
in favour ofruflin/Elastica
, but meanwhile 2 years agonodespark/des-connector
itself moved toruflin/Elastica
:) - First commit to issue fork.
- 🇨🇦Canada mparker17 UTC-4
mparker17 → changed the visibility of the branch 8.0.x to hidden.
- Assigned to mparker17
- 🇨🇦Canada mparker17 UTC-4
I have been working on ElasticSearch 8.x support, using
ruflin/Elastica
as a backend library.This work is far from complete (notably, nothing works yet and most of the tests fail!) but wanted to share my work thus far to show there is progress being made. The customer that I am working for is paying me to work on this issue, so I'm going to leave it assigned to myself while I work on it over the next little while. Thanks in advance for your patience!
Recap of what I've done thus far:
- Mark compatibility with Drupal 10 in .info files.
- Set minimum version for illuminate/support to 10.41.0 (since that's what I'm testing with).
- Set minimum version for ruflin/elastica to 7.3 (since that's what I'm testing with).
- Merged changes from the
8.x-7.x
branch (because there were some changes made there since8.0.x
was forked from it) - Cleaned up the most obvious type errors in code and comments.
- Optimized imports in all files, to remove references to things that are no longer used (and sort them by name, which phpcs is linting for now ✨ Add sniff to check and fix the order of Use statements Fixed ).
- Fix two tests whose Overridden
::setUp()
function wasn't conforming to the parent method signature.
With the advice of @sokru, my next steps will likely be:
- look into 📌 Investigate search_api_opensearch as base for elasticsearch_connector Fixed (if we can build upon another module → , that would save a bunch of time and remove a bunch of code we don't need)
- delete some unused D7 functions in the .module file, and functions marked as deprecated and scheduled for deletion in 8.0.x (less code to maintain, fix, etc.)
- figure out why tests are failing and fix issues
- look into making the Drupal.org GitLab CI → linters pass
- 🇩🇪Germany a.dmitriiev
I am using 8.x-7.x-alpha4 release with following patches:
"drupal/elasticsearch_connector": { "[https://drupal.org/i/2977537] - Source Fields in Elasticsearch Index are arrays": "https://www.drupal.org/files/issues/2021-07-30/8.x-7.x-2977537-18-array-vs-scalar.patch", "[https://drupal.org/i/3102388] - Add Search API data source implementation": "https://www.drupal.org/files/issues/2024-01-17/3102388-elastic-search-document-16.patch", "[https://drupal.org/i/3183164] - Index time boost is deprecated": "https://www.drupal.org/files/issues/2023-09-28/index-time-boost-is-deprecated--3183164--7.patch" },
Elastic server 8.11.3. Indexing and querying works. Maybe some very specific things are not, but basics are working fine. I have setup with search_api.
- Merge request !37Issue #3175898 by sokru, skek, robertoperuzzo, IT-Cru, Renrhaf: Port issue... → (Open) created by franadame
- Open on Drupal.org →Core: 10.2.1 + Environment: PHP 8.1 & MySQL 5.7last update
9 months ago Waiting for branch to pass - Open on Drupal.org →Core: 10.2.1 + Environment: PHP 8.1 & MySQL 5.7last update
9 months ago Waiting for branch to pass - First commit to issue fork.
- Merge request !38Resolve #3186932: by sokru, ayalon, Marios Anagnostopoulos: Use... → (Closed) created by franadame
- Issue was unassigned.
- 🇨🇦Canada mparker17 UTC-4
Hey folks, sorry for not reporting my progress on this issue, and thus causing work duplication. I've also been juggling a bunch of other work at the same time.
I have not yet had a chance to look at @franadame's branch from this morning, but I will shortly. I'll unassign myself from this ticket in the meantime.
I've been working in the
3279558-support-elasticsearch-8
issue fork and on my local computer. On my end, I have successfully merged8.x-7.x
into the the8.0.x
branch, but I've been trying to get tests passing before I push my work to drupal.org. Once I have tests passing, I was planning to apply some of the patches from #11, add GitLab CI config → , and integrate a bunch of changes from 📌 Investigate search_api_opensearch as base for elasticsearch_connector Fixed .Thanks again for your patience, and I apologize again for not communicating about my progress as well as I should have.
- 🇨🇦Canada mparker17 UTC-4
Follow-up to my last comment: I don't see any differences between the commits in my branch (
3279558-support-elasticsearch-8
) and the commits in @franadame's branch (3279558-elastic7-8
, merge request !38).@franadame, were you planning to contribute code to your branch, were you creating a merge request to get a unified diff you could test with, or something else? If you are planning to contribute code to this issue, perhaps we can collaborate?
- Open on Drupal.org →Core: 10.2.1 + Environment: PHP 8.1 & MySQL 5.7last update
9 months ago Waiting for branch to pass - Open on Drupal.org →Core: 10.2.1 + Environment: PHP 8.1 & MySQL 5.7last update
9 months ago Waiting for branch to pass - Open on Drupal.org →Core: 10.2.1 + Environment: PHP 8.1 & MySQL 5.7last update
9 months ago Waiting for branch to pass - Open on Drupal.org →Core: 10.2.1 + Environment: PHP 8.1 & MySQL 5.7last update
9 months ago Waiting for branch to pass - Open on Drupal.org →Core: 10.2.1 + Environment: PHP 8.1 & MySQL 5.7last update
9 months ago Waiting for branch to pass - Open on Drupal.org →Core: 10.2.1 + Environment: PHP 8.1 & MySQL 5.7last update
9 months ago Waiting for branch to pass - 🇪🇸Spain franadame Seville
Hi @mparker17
I just wanted to "move" this issue to be merged because ES8 is not currently working in D10.
I've just cheked your changes (when i created the MR) and currently is working on my project, so no contributions were needed apart from adapting my custom code to this new release in my project. - Open on Drupal.org →Core: 10.2.1 + Environment: PHP 8.1 & MySQL 5.7last update
9 months ago Waiting for branch to pass - Open on Drupal.org →Core: 10.2.1 + Environment: PHP 8.1 & MySQL 5.7last update
9 months ago Waiting for branch to pass - Open on Drupal.org →Core: 10.2.1 + Environment: PHP 8.1 & MySQL 5.7last update
9 months ago Waiting for branch to pass - Open on Drupal.org →Core: 10.2.1 + Environment: PHP 8.1 & MySQL 5.7last update
9 months ago Waiting for branch to pass - Open on Drupal.org →Core: 10.2.1 + Environment: PHP 8.1 & MySQL 5.7last update
9 months ago Waiting for branch to pass - Open on Drupal.org →Core: 10.2.1 + Environment: PHP 8.1 & MySQL 5.7last update
9 months ago Waiting for branch to pass - Open on Drupal.org →Core: 10.2.1 + Environment: PHP 8.1 & MySQL 5.7last update
9 months ago Waiting for branch to pass - Open on Drupal.org →Core: 10.2.1 + Environment: PHP 8.1 & MySQL 5.7last update
9 months ago Waiting for branch to pass - Open on Drupal.org →Core: 10.2.1 + Environment: PHP 8.1 & MySQL 5.7last update
9 months ago Waiting for branch to pass - Open on Drupal.org →Core: 10.2.1 + Environment: PHP 8.1 & MySQL 5.7last update
9 months ago Waiting for branch to pass - Open on Drupal.org →Core: 10.2.1 + Environment: PHP 8.1 & MySQL 5.7last update
9 months ago Waiting for branch to pass - Open on Drupal.org →Core: 10.2.1 + Environment: PHP 8.1 & MySQL 5.7last update
9 months ago Waiting for branch to pass - Open on Drupal.org →Core: 10.2.1 + Environment: PHP 8.1 & MySQL 5.7last update
9 months ago Waiting for branch to pass - Open on Drupal.org →Core: 10.2.1 + Environment: PHP 8.1 & MySQL 5.7last update
9 months ago Waiting for branch to pass - Open on Drupal.org →Core: 10.2.1 + Environment: PHP 8.1 & MySQL 5.7last update
9 months ago Waiting for branch to pass - Open on Drupal.org →Core: 10.2.1 + Environment: PHP 8.1 & MySQL 5.7last update
9 months ago Waiting for branch to pass - Open on Drupal.org →Core: 10.2.1 + Environment: PHP 8.1 & MySQL 5.7last update
9 months ago Waiting for branch to pass - Open on Drupal.org →Core: 10.2.1 + Environment: PHP 8.1 & MySQL 5.7last update
9 months ago Waiting for branch to pass - Open on Drupal.org →Core: 10.2.1 + Environment: PHP 8.1 & MySQL 5.7last update
9 months ago Waiting for branch to pass - Open on Drupal.org →Core: 10.2.1 + Environment: PHP 8.1 & MySQL 5.7last update
9 months ago Waiting for branch to pass - Open on Drupal.org →Core: 10.2.1 + Environment: PHP 8.1 & MySQL 5.7last update
9 months ago Waiting for branch to pass - 🇨🇦Canada mparker17 UTC-4
As an aside, I’ve submitted a pull request to add support for the Combined Fields query to the ruflin/Elastica PHP library: issue #2195, pull request !2196 for branch 8.x.
Most of the commits since Feb 15th have been trying to figure out how to spin up an Elasticsearch container to run tests against (it's been working locally since then, just not on drupal.org). I'm still working with Drupal.org GitLab CI folks in Slack to try to resolve this... sorry to add noise to this issue... I intend to squash all the commits once we have something working.
- Open on Drupal.org →Core: 10.2.1 + Environment: PHP 8.1 & MySQL 5.7last update
9 months ago Waiting for branch to pass - Open on Drupal.org →Core: 10.2.1 + Environment: PHP 8.1 & MySQL 5.7last update
9 months ago Waiting for branch to pass - Open on Drupal.org →Core: 10.2.1 + Environment: PHP 8.1 & MySQL 5.7last update
9 months ago Waiting for branch to pass - Open on Drupal.org →Core: 10.2.1 + Environment: PHP 8.1 & MySQL 5.7last update
9 months ago Waiting for branch to pass - Open on Drupal.org →Core: 10.2.1 + Environment: PHP 8.1 & MySQL 5.7last update
9 months ago Waiting for branch to pass - Status changed to Needs review
9 months ago 11:23pm 1 March 2024 - 🇨🇦Canada mparker17 UTC-4
Hi everyone, I'm happy to report that the phpunit tests are finally passing in GitLab CI (but note there are a bunch of linter issues remaining, and we may still want to delete a lot of the cruft, as per 📌 Investigate search_api_opensearch as base for elasticsearch_connector Fixed )! Also, I've squashed all ~26 commits I had made to try to get GitLab CI working, so it's easier to review.
So, I think this is ready for some review, testing, and feedback now.
- 🇪🇸Spain fjgarlin
We need to improve documentation in the gitlab templates, but wanted to mention that you can easily skip lints if this is not desired with these variables https://git.drupalcode.org/project/gitlab_templates/-/blob/main/includes...
- 🇫🇮Finland sokru
I spent weekend updating merge request on 📌 Investigate search_api_opensearch as base for elasticsearch_connector Fixed . I'd be much rather use the codebase from the search_api_opensearch unless there's a strong arguments to use MR's from this issue. Codebase on both issue introduce significant changes so people who have extended any classes/hooks from 8.x-7.x needs to update their codebase anyway. But I'm open to counter arguments, and if we'd choose to close this in favor of 📌 Investigate search_api_opensearch as base for elasticsearch_connector Fixed I'll transfer the credits to corresponding peoples.
- Status changed to Fixed
8 months ago 5:43pm 11 March 2024 - 🇨🇦Canada mparker17 UTC-4
Hi everyone, @sokru and I worked to add ElasticSearch 8 support to the 8.0.x branch in 📌 Investigate search_api_opensearch as base for elasticsearch_connector Fixed , using what we learned in this ticket, so I'd encourage you to try out the 8.0.x branch if you're looking for this feature.
Automatically closed - issue fixed for 2 weeks with no activity.