Skip to content

Instantly share code, notes, and snippets.

@mihalikv
Created January 27, 2018 11:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mihalikv/14a06d19e50baccdfe5501cbdefba908 to your computer and use it in GitHub Desktop.
Save mihalikv/14a06d19e50baccdfe5501cbdefba908 to your computer and use it in GitHub Desktop.
{
"shop": {
"mappings": {
"product": {
"properties": {
"absolute_url": {
"type": "keyword"
},
"add_to_basket_url": {
"type": "keyword"
},
"add_to_wishlist_url": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"attributes": {
"type": "nested",
"properties": {
"code": {
"type": "keyword"
},
"translated_fields": {
"type": "nested",
"properties": {
"sk": {
"type": "nested",
"properties": {
"name": {
"type": "keyword"
},
"slug": {
"type": "keyword"
},
"value": {
"type": "keyword"
}
}
}
}
},
"type": {
"type": "keyword"
}
}
},
"breadcrumbs": {
"properties": {
"translated_fields": {
"properties": {
"sk": {
"properties": {
"name": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"url": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
}
}
}
}
}
}
},
"categories": {
"type": "nested",
"properties": {
"id": {
"type": "integer"
},
"image": {
"type": "keyword"
},
"is_collection": {
"type": "boolean"
},
"parent": {
"type": "nested",
"properties": {
"id": {
"type": "integer"
},
"image": {
"type": "keyword"
},
"is_collection": {
"type": "boolean"
},
"translated_fields": {
"type": "nested",
"properties": {
"sk": {
"type": "nested",
"properties": {
"all_label": {
"type": "keyword"
},
"description": {
"type": "text"
},
"name": {
"type": "text",
"fields": {
"general": {
"type": "text",
"boost": 4,
"analyzer": "slovencina"
},
"orig": {
"type": "text",
"boost": 4,
"analyzer": "slovencina_folding"
},
"raw": {
"type": "keyword"
}
}
},
"slug": {
"type": "keyword"
},
"url": {
"type": "keyword"
}
}
}
}
}
}
},
"translated_fields": {
"type": "nested",
"properties": {
"sk": {
"type": "nested",
"properties": {
"all_label": {
"type": "keyword"
},
"description": {
"type": "text"
},
"name": {
"type": "text",
"fields": {
"general": {
"type": "text",
"boost": 4,
"analyzer": "slovencina"
},
"orig": {
"type": "text",
"boost": 4,
"analyzer": "slovencina_folding"
},
"raw": {
"type": "keyword"
}
}
},
"slug": {
"type": "keyword"
},
"url": {
"type": "keyword"
}
}
}
}
}
}
},
"date_created": {
"type": "date"
},
"group_by_property": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"group_by_value": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"id": {
"type": "integer"
},
"image": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"image_350_275": {
"type": "keyword"
},
"is_catalog_visible": {
"type": "boolean"
},
"is_set_product": {
"type": "boolean"
},
"is_special_offer": {
"type": "boolean"
},
"is_top_product": {
"type": "boolean"
},
"manufacturer": {
"type": "text",
"boost": 2,
"fields": {
"general": {
"type": "text",
"analyzer": "slovencina"
},
"raw": {
"type": "keyword"
}
}
},
"manufacturer_cover": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"manufacturer_slug": {
"type": "keyword"
},
"old_price_including_tax": {
"type": "float"
},
"option_groups_value": {
"type": "nested",
"properties": {
"group": {
"type": "nested",
"properties": {
"default_expanded": {
"type": "boolean"
},
"translated_fields": {
"type": "nested",
"properties": {
"sk": {
"type": "nested",
"properties": {
"name": {
"type": "keyword"
}
}
}
}
},
"type": {
"type": "keyword"
},
"visible_in_catalog": {
"type": "boolean"
}
}
},
"group_id": {
"type": "integer"
},
"option": {
"type": "integer"
},
"option_value": {
"type": "nested",
"properties": {
"icon_url": {
"type": "keyword"
},
"translated_fields": {
"type": "nested",
"properties": {
"sk": {
"type": "nested",
"properties": {
"name": {
"type": "keyword"
},
"slug": {
"type": "keyword"
}
}
}
}
}
}
},
"product_class": {
"type": "nested",
"properties": {
"id": {
"type": "keyword"
},
"translated_fields": {
"type": "nested",
"properties": {
"sk": {
"type": "nested",
"properties": {
"name": {
"type": "keyword"
},
"slug": {
"type": "keyword"
}
}
}
}
},
"visible_in_product_detail": {
"type": "boolean"
}
}
}
}
},
"order_no": {
"type": "keyword"
},
"original_price_incl_tax": {
"type": "double"
},
"parent_id": {
"type": "integer"
},
"path": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"price_excl_tax": {
"type": "float"
},
"price_incl_tax": {
"type": "float"
},
"shipping_date": {
"type": "date"
},
"sold_count": {
"type": "integer"
},
"stock": {
"type": "integer"
},
"stock_state": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"thumbnails": {
"properties": {
"category_header": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"product_detail": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"product_detail_icon": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"product_detail_zoom": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"product_item": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"product_tail": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"product_thumbnail": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
}
}
},
"translated_fields": {
"type": "nested",
"properties": {
"sk": {
"type": "nested",
"properties": {
"description": {
"type": "text",
"fields": {
"general": {
"type": "text",
"analyzer": "slovencina"
},
"orig": {
"type": "text",
"analyzer": "slovencina_folding"
}
}
},
"key_features": {
"type": "text",
"fields": {
"general": {
"type": "text",
"analyzer": "slovencina"
},
"orig": {
"type": "text",
"analyzer": "slovencina_folding"
}
}
},
"name": {
"type": "text",
"fields": {
"general": {
"type": "text",
"boost": 10,
"analyzer": "slovencina"
},
"standard": {
"type": "text",
"boost": 10,
"analyzer": "standard"
}
}
},
"slug": {
"type": "keyword"
},
"summary_text": {
"type": "text",
"boost": 2,
"fields": {
"general": {
"type": "text",
"analyzer": "slovencina"
},
"orig": {
"type": "text",
"analyzer": "slovencina_folding"
}
}
},
"url": {
"type": "keyword"
}
}
}
}
}
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment