From 66cc0a82b46bc7f3ca2cadda49cebcf342b8f7ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Honza=20Kr=C3=A1l?= Date: Sat, 18 Feb 2017 15:48:39 +0530 Subject: [PATCH] allow fielddata for files field to allow aggregations --- example/load.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/example/load.py b/example/load.py index a99944e8..42582bd4 100644 --- a/example/load.py +++ b/example/load.py @@ -54,7 +54,7 @@ def create_git_index(client, index): 'committed_date': {'type': 'date'}, 'parent_shas': {'type': 'keyword'}, 'description': {'type': 'text', 'analyzer': 'snowball'}, - 'files': {'type': 'text', 'analyzer': 'file_path'} + 'files': {'type': 'text', 'analyzer': 'file_path', "fielddata": True} } }, 'repos': {