allow fielddata for files field to allow aggregations

This commit is contained in:
Honza Král
2017-02-18 15:48:39 +05:30
parent f638c3f625
commit 66cc0a82b4
+1 -1
View File
@@ -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': {