Error indexing to elasticsearch 6.0.0

Bug #1734006 reported by Robert Lyon on 2017-11-23
This bug affects 1 person
Affects Status Importance Assigned to Milestone
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:

Robert Lyon (robertl-9) on 2017-11-23
Changed in mahara:
importance: Undecided → Medium
milestone: none → 18.04.0
status: New → In Progress
assignee: nobody → Robert Lyon (robertl-9)
Mahara Bot (dev-mahara) wrote :

Patch for "master" branch:

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


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

Mahara Bot (dev-mahara) wrote :

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
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


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

Robert Lyon (robertl-9) on 2018-02-01
Changed in mahara:
status: In Progress → Fix Committed
Robert Lyon (robertl-9) on 2018-04-05
Changed in mahara:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers