Error indexing to elasticsearch 6.0.0

Bug #1734006 reported by Robert Lyon
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mahara
Fix Released
Medium
Robert Lyon

Bug Description

When trying to index to elasticsearch version 6.0.0

I get this error

[WAR] 84 (lib/errors.php:536) [Elasticsearch\\Common\\Exceptions\\BadRequest400Exception]: {"error":{"root_cause":[{"type":"illegal_argument_exception","reason":"Could not convert [mainfacetterm.index] to boolean"}],"type":"illegal_argument_exception","reason":"Could not convert [mainfacetterm.index] to boolean","caused_by":{"type":"illegal_argument_exception","reason":"Failed to parse value [not_analyzed] as only [true] or [false] are allowed."}},"status":400}, referer: http://mahara-devel/admin/site/options.php?fs=searchsettings

The error is due to this:
https://www.elastic.co/guide/en/elasticsearch/reference/current/removal-of-types.html

Robert Lyon (robertl-9)
Changed in mahara:
importance: Undecided → Medium
milestone: none → 18.04.0
status: New → In Progress
assignee: nobody → Robert Lyon (robertl-9)
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/8304

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

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

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

Reviewed: https://reviews.mahara.org/8366
Committed: https://git.mahara.org/mahara/mahara/commit/3ef7e55a90ffa91b3b2c5ee7dd7fa74fbb1e3956
Submitter: Robert Lyon (<email address hidden>)
Branch: master

commit 3ef7e55a90ffa91b3b2c5ee7dd7fa74fbb1e3956
Author: Robert Lyon <email address hidden>
Date: Tue Dec 19 08:32:29 2017 +1300

Bug 1734006: Allow the search facet tab links to scroll to tab area

Useful if you have a tall top to you page as clicking a search tab
reloads the page and now you need to scroll to the results part again

behatnotneeded

Change-Id: I1b1ae3ef5c0849aa18496624777fbfe887361ee6
Signed-off-by: Robert Lyon <email address hidden>

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

Reviewed: https://reviews.mahara.org/8311
Committed: https://git.mahara.org/mahara/mahara/commit/9e59e59471c7dd6e2dc2018786acc945ed8dd372
Submitter: Robert Lyon (<email address hidden>)
Branch: master

commit 9e59e59471c7dd6e2dc2018786acc945ed8dd372
Author: Robert Lyon <email address hidden>
Date: Mon Nov 27 13:05:59 2017 +1300

Bug 1734006: Elasticsearch to work with either elasticsearch 5+ or 6+ server

This patch reworks how we do index mapping.

Old way: We mapped different types eg usr, view separately
New way: We map one 'doc' type and merge the existing mapping types to
that.
We can do this by adding a 'type' field to the mapping and making the
elasticsearch internal '_id' be populated with the type + id from
mahara, eg usr7 vs view7.

Also instead of using the '_all' mapping (which is obsoleted in 6.x)
we create an explicit 'catch_all' field that we populate via 'copy_to'
from other fields

behatnotneeded

Change-Id: Id0b89a011633fe7184518c0dc0473514729894f3
Signed-off-by: Robert Lyon <email address hidden>

Robert Lyon (robertl-9)
Changed in mahara:
status: In Progress → Fix Committed
Robert Lyon (robertl-9)
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.

Other bug subscribers

Remote bug watches

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