Implement Elasticsearch 7

Bug #1890356 reported by Lisa Seeto
22
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Mahara
Fix Released
Wishlist
Gold

Bug Description

Related to https://bugs.launchpad.net/mahara/+bug/1865115

Currently Elasticsearch-PHP is at version 6.1.0. We will update this to version 7.X, i.e. the latest in the 7. series

https://github.com/elastic/elasticsearch-php/releases

Lisa Seeto (lisaseeto)
description: updated
Changed in mahara:
milestone: 20.10.0 → 21.04.0
Changed in mahara:
status: New → Confirmed
importance: Undecided → High
Changed in mahara:
milestone: 21.04.0 → 21.10.0
summary: - Upgrade: Elasticsearch-PHP 6.1.0 to 7.8.0
+ Upgrade: Elasticsearch-PHP 6.1.0 to latest
Doris Tam (doristam)
tags: added: libraryupgrade
Changed in mahara:
status: Confirmed → In Progress
assignee: nobody → Gold (gold.catalyst)
description: updated
Revision history for this message
Mahara Bot (dev-mahara) wrote : A patch has been submitted for review

Patch for "master" branch: https://reviews.mahara.org/11920

Revision history for this message
Mahara Bot (dev-mahara) wrote :

Patch for "main" branch: https://reviews.mahara.org/12105

Robert Lyon (robertl-9)
Changed in mahara:
milestone: 21.10.0 → 22.04.0
Revision history for this message
Mahara Bot (dev-mahara) wrote :

Patch for "main" branch: https://reviews.mahara.org/12498

Revision history for this message
Mahara Bot (dev-mahara) wrote : A change has been merged

Reviewed: https://reviews.mahara.org/c/mahara/+/12105
Committed: https://git.mahara.org/mahara/mahara/commit/b096dffaa133f25c243d0afda523e18ac9aafde9
Submitter: "Robert Lyon <email address hidden>"
Branch: main

commit b096dffaa133f25c243d0afda523e18ac9aafde9
Author: Gold <email address hidden>
Date: Mon Aug 16 13:16:49 2021 +1200

Bug 1890356 : New Elasticsearch7 search plugin

Ready for the world to test.

To test:

Start with the README.md in `dev/elasticsearch7`. That will help you
stand up containers for testing.

Next, Admin > Extensions > Plugins and enable Elasticsearch 7.

Configure the Plugin. Select all Artefact types to make testing easy.

Requeueing individual content types is a WIP. Users and Groups are
available.

Next, Admin > Configure Site > Site Options : Search settings. Select
Elasticsearch 7.

Setup complete. At this point you can start creating test content.
A summary of this should appear on the plugin page under the Index reset
section. Running cron should index the items.

Current state:

Reports/Event logs.

✔️ Index creation
✔️ Content indexing
✔️ Catch All mapping
✔️ Search page with faceted tabs
✔️ ACL restrictions
✔️ Tags
✔️ Reports
✔️ Event logs

There is now support for the Monitor module. The ModuleType is
'search'. It is modular to allow it to work with the selected search
plugin. The ES7 search plugin has been configured to work with it.

Additional changes for errors:

ERROR: [1] bootstrap checks failed. You must address the points described in the following [1] lines before starting Elasticsearch.
es03 | bootstrap check failure [1] of [1]: max file descriptors [4096] for elasticsearch process is too low, increase to at least [65535]

Changes
```
ulimits:
nofile:
soft: 65536
```
hard: 65536

Change-Id: Id5ff1b0553a37011bcc3926a53eb01cad89645c4

Revision history for this message
Mahara Bot (dev-mahara) wrote :

Reviewed: https://reviews.mahara.org/c/mahara/+/12498
Committed: https://git.mahara.org/mahara/mahara/commit/517502f1b3716848f5c3af14c05dab15e856b26d
Submitter: "Robert Lyon <email address hidden>"
Branch: main

commit 517502f1b3716848f5c3af14c05dab15e856b26d
Author: Dianne Tennent <email address hidden>
Date: Mon Mar 14 14:14:37 2022 +1300

Bug 1890356: Behat tests for Elasticsearch7

Testing ES7 with behat:

All ES7 tests have the @manual tag so they will not run unless you
specify that tag.

This patchset updates mahara_behat.sh so a feature (file or dir) can be
specified as well as a tag.

i.e. ./mahara_behat.sh rundebug elasticsearch7/ @manual

Includes new Behat tests:
- "I should see "text" at matrixpoint "y,x"
- Ability to create group page comments in background step for
"pagecomments"
- A new step for selecting options from multiple sharing suboptions:
"And I select "name" from select2 hidden search box in row number "x"

Change-Id: Ib3a17be355a65d54fba07d5402e67530a4d462c9

Robert Lyon (robertl-9)
Changed in mahara:
status: In Progress → Fix Committed
tags: added: newfeature
summary: - Upgrade: Elasticsearch-PHP 6.1.0 to latest
+ Implement Elasticsearch 7
Changed in mahara:
importance: High → Wishlist
Gold (gold.catalyst)
Changed in mahara:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.