-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathfiscal_template.json
55 lines (55 loc) · 1.15 KB
/
fiscal_template.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
{
"index_patterns": "fiscal*",
"settings": {
"number_of_shards": 1,
"number_of_replicas": 0
},
"mappings": {
"dynamic_templates": [
{
"dates": {
"match_mapping_type": "date",
"mapping": {
"type": "date"
}
}
},
{
"years": {
"match": "*year*",
"mapping": {
"type": "short"
}
}
},
{
"doubles": {
"match_pattern": "regex",
"match": "^[a-zA-Z_0-9]*(monetary|amount)[a-zA-Z_0-9]*$",
"mapping": {
"type": "double"
}
}
},
{
"shorts": {
"match_pattern": "regex",
"match": "^[a-zA-Z_0-9]*(period)[a-zA-Z_0-9]*$",
"mapping": {
"type": "short"
}
}
},
{
"keywords": {
"match_mapping_type": "string",
"match_pattern": "regex",
"match": "^[a-zA-Z_0-9]*(description|type|category|code|reference|name|unit|group|account|document)[a-zA-Z_0-9]*$",
"mapping": {
"type": "keyword"
}
}
}
]
}
}