Created
April 25, 2018 13:18
-
-
Save bevans88/0bbd843140971c8ed1ec69904ee7acc5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"mappings": { | |
"_doc": { | |
"dynamic": "true", | |
"_all": { | |
"enabled": false | |
}, | |
"dynamic_templates": [{ | |
"resource_id_match_template": { | |
"path_match": "resource.*.id", | |
"mapping": { | |
"store": false, | |
"type": "keyword" | |
} | |
} | |
}, { | |
"resource_name_match_template": { | |
"path_match": "resource.*.name", | |
"mapping": { | |
"analyzer": "charwidth_normalized_lowercase_keyword", | |
"store": true, | |
"type": "text" | |
} | |
} | |
}, { | |
"resource_name_id_match_template": { | |
"path_match": "resource.*.nameId", | |
"mapping": { | |
"store": true, | |
"type": "keyword" | |
} | |
} | |
}, { | |
"string_facet_id_match_template": { | |
"path_match": "stringFacet.*.id", | |
"mapping": { | |
"store": false, | |
"type": "keyword" | |
} | |
} | |
}, { | |
"string_facet_name_match_template": { | |
"path_match": "stringFacet.*.name", | |
"mapping": { | |
"store": true, | |
"type": "text" | |
} | |
} | |
}, { | |
"string_facet_name_id_match_template": { | |
"path_match": "stringFacet.*.nameId", | |
"mapping": { | |
"store": true, | |
"type": "keyword" | |
} | |
} | |
}, { | |
"int_facet_id_match_template": { | |
"path_match": "intFacet.*.id", | |
"mapping": { | |
"store": false, | |
"type": "integer" | |
} | |
} | |
}, { | |
"int_facet_name_match_template": { | |
"path_match": "intFacet.*.name", | |
"mapping": { | |
"store": true, | |
"type": "text" | |
} | |
} | |
}, { | |
"int_facet_name_id_match_template": { | |
"path_match": "intFacet.*.nameId", | |
"mapping": { | |
"store": true, | |
"type": "keyword" | |
} | |
} | |
} | |
], | |
"properties": { | |
"firstNested": { | |
"type": "nested", | |
"properties": { | |
"names": { | |
"type": "text", | |
"fields": { | |
"keyword": { | |
"type": "keyword" | |
} | |
} | |
}, | |
"namesCombination": { | |
"type": "keyword" | |
}, | |
"secondNested": { | |
"type": "nested", | |
"properties": { | |
"names": { | |
"type": "text", | |
"fields": { | |
"keyword": { | |
"type": "keyword" | |
} | |
} | |
}, | |
"namesCombination": { | |
"type": "keyword" | |
}, | |
"cost": { | |
"type": "double" | |
}, | |
"count": { | |
"type": "long" | |
}, | |
"size": { | |
"type": "long" | |
} | |
} | |
}, | |
"company": { | |
"type": "keyword" | |
}, | |
"cost": { | |
"type": "double" | |
}, | |
"count": { | |
"type": "long" | |
}, | |
"size": { | |
"type": "long" | |
} | |
} | |
}, | |
"id": { | |
"type": "text", | |
"fields": { | |
"keyword": { | |
"type": "keyword", | |
"ignore_above": 256 | |
} | |
} | |
}, | |
"intFacet": { | |
"properties": { | |
"date1": { | |
"properties": { | |
"id": { | |
"type": "integer" | |
}, | |
"name": { | |
"type": "text", | |
"store": true | |
}, | |
"nameId": { | |
"type": "keyword", | |
"store": true | |
} | |
} | |
}, | |
"date2": { | |
"properties": { | |
"id": { | |
"type": "integer" | |
}, | |
"name": { | |
"type": "text", | |
"store": true | |
}, | |
"nameId": { | |
"type": "keyword", | |
"store": true | |
} | |
} | |
}, | |
"type": { | |
"properties": { | |
"id": { | |
"type": "integer" | |
}, | |
"name": { | |
"type": "text", | |
"store": true | |
}, | |
"nameId": { | |
"type": "keyword", | |
"store": true | |
} | |
} | |
}, | |
"date3": { | |
"properties": { | |
"id": { | |
"type": "integer" | |
}, | |
"name": { | |
"type": "text", | |
"store": true | |
}, | |
"nameId": { | |
"type": "keyword", | |
"store": true | |
} | |
} | |
}, | |
"range": { | |
"properties": { | |
"id": { | |
"type": "integer" | |
}, | |
"name": { | |
"type": "text", | |
"store": true | |
}, | |
"nameId": { | |
"type": "keyword", | |
"store": true | |
} | |
} | |
} | |
} | |
}, | |
"resource": { | |
"properties": { | |
"1": { | |
"properties": { | |
"id": { | |
"type": "keyword" | |
}, | |
"name": { | |
"type": "text", | |
"store": true, | |
"analyzer": "charwidth_normalized_lowercase_keyword" | |
}, | |
"nameId": { | |
"type": "keyword", | |
"store": true | |
} | |
} | |
}, | |
"2": { | |
"properties": { | |
"id": { | |
"type": "keyword" | |
}, | |
"name": { | |
"type": "text", | |
"store": true, | |
"analyzer": "charwidth_normalized_lowercase_keyword" | |
}, | |
"nameId": { | |
"type": "keyword", | |
"store": true | |
} | |
} | |
}, | |
"3": { | |
"properties": { | |
"id": { | |
"type": "keyword" | |
}, | |
"name": { | |
"type": "text", | |
"store": true, | |
"analyzer": "charwidth_normalized_lowercase_keyword" | |
}, | |
"nameId": { | |
"type": "keyword", | |
"store": true | |
} | |
} | |
}, | |
"4": { | |
"properties": { | |
"id": { | |
"type": "keyword" | |
}, | |
"name": { | |
"type": "text", | |
"store": true, | |
"analyzer": "charwidth_normalized_lowercase_keyword" | |
}, | |
"nameId": { | |
"type": "keyword", | |
"store": true | |
} | |
} | |
} | |
} | |
}, | |
"stringFacet": { | |
"properties": { | |
"a": { | |
"properties": { | |
"id": { | |
"type": "keyword" | |
}, | |
"name": { | |
"type": "text", | |
"store": true | |
}, | |
"nameId": { | |
"type": "keyword", | |
"store": true | |
} | |
} | |
}, | |
"b": { | |
"properties": { | |
"id": { | |
"type": "keyword" | |
}, | |
"name": { | |
"type": "text", | |
"store": true | |
}, | |
"nameId": { | |
"type": "keyword", | |
"store": true | |
} | |
} | |
} | |
} | |
}, | |
"cost": { | |
"type": "double" | |
}, | |
"count": { | |
"type": "long" | |
}, | |
"size": { | |
"type": "long" | |
} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment