Last active
June 7, 2018 12:37
-
-
Save mngmntt/5bd29d4a64071a1b462243e6047df2ad to your computer and use it in GitHub Desktop.
This file contains hidden or 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
{ | |
"product": { | |
"dynamic_templates": [ | |
{ | |
"search_result": { | |
"mapping": { | |
"type": "string", | |
"index": "no" | |
}, | |
"path_match": "search_result.*" | |
} | |
} | |
], | |
"properties": { | |
"facets": { | |
"type": "nested", | |
"include_in_parent": false, | |
"properties": { | |
"keyword_facet": { | |
"type": "nested", | |
"properties": { | |
"id": { | |
"type": "integer", | |
"index": "not_analyzed" | |
}, | |
"name": { | |
"type": "string", | |
"index": "not_analyzed" | |
}, | |
"value": { | |
"type": "keyword", | |
"index": "not_analyzed" | |
} | |
} | |
}, | |
"string_facet": { | |
"type": "nested", | |
"properties": { | |
"id": { | |
"type": "integer", | |
"index": "not_analyzed" | |
}, | |
"name": { | |
"type": "string", | |
"index": "not_analyzed" | |
}, | |
"value": { | |
"type": "string", | |
"index": "not_analyzed" | |
} | |
} | |
}, | |
"number_facet": { | |
"type": "nested", | |
"properties": { | |
"id": { | |
"type": "integer", | |
"index": "not_analyzed" | |
}, | |
"name": { | |
"type": "string", | |
"index": "not_analyzed" | |
}, | |
"value": { | |
"type": "double" | |
} | |
} | |
}, | |
"boolean_facet": { | |
"type": "nested", | |
"properties": { | |
"id": { | |
"type": "integer", | |
"index": "not_analyzed" | |
}, | |
"name": { | |
"type": "string", | |
"index": "not_analyzed" | |
}, | |
"value": { | |
"type": "boolean" | |
} | |
} | |
} | |
} | |
}, | |
"type": { | |
"type": "string", | |
"store": true, | |
"index": "not_analyzed" | |
}, | |
"brand" : { | |
"dynamic" : "strict", | |
"properties" : { | |
"id" : { | |
"type" : "integer" | |
}, | |
"name" : { | |
"type" : "keyword" | |
}, | |
"is_premium" : { | |
"type" : "boolean" | |
}, | |
"is_beauty" : { | |
"type" : "boolean" | |
}, | |
"is_sport" : { | |
"type" : "boolean" | |
}, | |
"is_kids" : { | |
"type" : "boolean" | |
}, | |
"seo_tail" : { | |
"type" : "keyword" | |
} | |
} | |
}, | |
"brand_group" : { | |
"dynamic" : "strict", | |
"properties" : { | |
"id" : { | |
"type" : "integer" | |
}, | |
"name" : { | |
"type" : "keyword" | |
}, | |
"seo_tail" : { | |
"type" : "keyword" | |
} | |
} | |
}, | |
"category" : { | |
"type" : "nested", | |
"dynamic" : "strict", | |
"properties" : { | |
"id" : { | |
"type" : "integer" | |
}, | |
"name" : { | |
"type" : "keyword" | |
}, | |
"parent_id" : { | |
"type" : "integer" | |
}, | |
"is_liquid" : { | |
"type" : "boolean" | |
}, | |
"is_airfreight_prohibited" : { | |
"type" : "boolean" | |
}, | |
"order" : { | |
"type" : "keyword" | |
}, | |
"seo_tail" : { | |
"type" : "keyword" | |
} | |
} | |
}, | |
"collection" : { | |
"type" : "nested", | |
"dynamic" : "strict", | |
"properties" : { | |
"id" : { | |
"type" : "integer" | |
}, | |
"name" : { | |
"type" : "keyword" | |
}, | |
"order" : { | |
"type" : "keyword" | |
} | |
} | |
}, | |
"seller" : { | |
"type" : "nested", | |
"dynamic" : "strict", | |
"properties" : { | |
"id" : { | |
"type" : "integer" | |
}, | |
"name" : { | |
"type" : "keyword" | |
}, | |
"is_crossborder" : { | |
"type" : "keyword" | |
} | |
} | |
}, | |
"qty": { | |
"type": "integer", | |
"index": "not_analyzed" | |
}, | |
"display_location": { | |
"type": "string", | |
"index": "not_analyzed" | |
}, | |
"enriched_for_search_keyword": { | |
"type": "nested", | |
"dynamic": "strict", | |
"enabled": true, | |
"properties": { | |
"key": { | |
"type": "keyword" | |
}, | |
"value": { | |
"type": "keyword" | |
} | |
} | |
}, | |
"enriched_for_search_text": { | |
"type": "nested", | |
"dynamic": "strict", | |
"enabled": true, | |
"properties": { | |
"key": { | |
"type": "keyword" | |
}, | |
"value": { | |
"type": "text" | |
} | |
} | |
}, | |
"enriched_for_search_boolean": { | |
"type": "nested", | |
"dynamic": "strict", | |
"enabled": true, | |
"properties": { | |
"key": { | |
"type": "keyword" | |
}, | |
"value": { | |
"type": "boolean" | |
} | |
} | |
}, | |
"sorting_factors" : { | |
"type" : "nested", | |
"dynamic" : "strict", | |
"properties" : { | |
"factor" : { | |
"type" : "integer" | |
}, | |
"value" : { | |
"type" : "double" | |
} | |
} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment