Also, note that setting fielddata can consume significant amounts of memory.
Further, the ES docs state that it's rarely appropriate: https://www.elastic.co/guide/en/elasticsearch/reference/current/fielddata.html#before-enabling-fielddata Since the word cloud is an optional extra, it seems wrong to unconditionally enable fielddata. At the least, it should be optional. On 30 October 2017 at 16:40, sebb <[email protected]> wrote: > Does it fix the following bug? > > https://github.com/apache/incubator-ponymail/issues/345 > > On 30 October 2017 at 16:22, sebb <[email protected]> wrote: >> Is there a bug reference for this? >> >> What about the Changelog? >> >> On 30 October 2017 at 15:13, <[email protected]> wrote: >>> add fielddata setting, so word cloud will work >>> >>> >>> Project: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/repo >>> Commit: >>> http://git-wip-us.apache.org/repos/asf/incubator-ponymail/commit/724837dd >>> Tree: >>> http://git-wip-us.apache.org/repos/asf/incubator-ponymail/tree/724837dd >>> Diff: >>> http://git-wip-us.apache.org/repos/asf/incubator-ponymail/diff/724837dd >>> >>> Branch: refs/heads/master >>> Commit: 724837dda8c757c17c9572ef2c5a34e61a4468b9 >>> Parents: 58d85c4 >>> Author: Daniel Gruno <[email protected]> >>> Authored: Mon Oct 30 16:11:57 2017 +0100 >>> Committer: Daniel Gruno <[email protected]> >>> Committed: Mon Oct 30 16:11:57 2017 +0100 >>> >>> ---------------------------------------------------------------------- >>> tools/setup.py | 4 +++- >>> 1 file changed, 3 insertions(+), 1 deletion(-) >>> ---------------------------------------------------------------------- >>> >>> >>> http://git-wip-us.apache.org/repos/asf/incubator-ponymail/blob/724837dd/tools/setup.py >>> ---------------------------------------------------------------------- >>> diff --git a/tools/setup.py b/tools/setup.py >>> index 57f7c64..38db29a 100755 >>> --- a/tools/setup.py >>> +++ b/tools/setup.py >>> @@ -295,7 +295,8 @@ def createIndex(): >>> "type" : "string" >>> }, >>> "subject" : { >>> - "type" : "string" >>> + "type" : "string", >>> + "fielddata": True >>> }, >>> "to" : { >>> "type" : "string" >>> @@ -440,6 +441,7 @@ def createIndex(): >>> }, >>> "subject" : { >>> "type" : "string", >>> + "fielddata": True >>> # "index" : "not_analyzed" >>> }, >>> "to" : { >>>
