mahara-contributors team mailing list archive
-
mahara-contributors team
-
Mailing list archive
-
Message #46374
[Bug 1734006] A change has been merged
Reviewed: https://reviews.mahara.org/8311
Committed: https://git.mahara.org/mahara/mahara/commit/9e59e59471c7dd6e2dc2018786acc945ed8dd372
Submitter: Robert Lyon (robertl@xxxxxxxxxxxxxxx)
Branch: master
commit 9e59e59471c7dd6e2dc2018786acc945ed8dd372
Author: Robert Lyon <robertl@xxxxxxxxxxxxxxx>
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 <robertl@xxxxxxxxxxxxxxx>
--
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1734006
Title:
Error indexing to elasticsearch 6.0.0
Status in Mahara:
Fix Committed
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
To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1734006/+subscriptions
References