Skip to content

Commit

Permalink
upgrade to Elasticsearch 7 (#1602)
Browse files Browse the repository at this point in the history
  • Loading branch information
s3tezsky authored Mar 3, 2020
2 parents fdac77a + a5dae9c commit 6f71d95
Show file tree
Hide file tree
Showing 7 changed files with 325 additions and 305 deletions.
8 changes: 8 additions & 0 deletions docker/conf/docker-compose-mac.yml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,14 @@ services:
environment:
- discovery.type=single-node

kibana:
image: docker.elastic.co/kibana/kibana-oss:7.6.0
container_name: shopsys-framework-kibana
depends_on:
- elasticsearch
ports:
- "5601:5601"

volumes:
shopsys-framework-sync:
external: true
Expand Down
8 changes: 8 additions & 0 deletions docker/conf/docker-compose-win.yml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,14 @@ services:
environment:
- discovery.type=single-node

kibana:
image: docker.elastic.co/kibana/kibana-oss:7.6.0
container_name: shopsys-framework-kibana
depends_on:
- elasticsearch
ports:
- "5601:5601"

volumes:
pgdata:
driver: local
Expand Down
8 changes: 8 additions & 0 deletions docker/conf/docker-compose.yml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,14 @@ services:
environment:
- discovery.type=single-node

kibana:
image: docker.elastic.co/kibana/kibana-oss:7.6.0
container_name: shopsys-framework-kibana
depends_on:
- elasticsearch
ports:
- "5601:5601"

volumes:
elasticsearch-data:
driver: local
2 changes: 1 addition & 1 deletion docker/elasticsearch/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM docker.elastic.co/elasticsearch/elasticsearch-oss:6.3.2
FROM docker.elastic.co/elasticsearch/elasticsearch-oss:7.6.0

# install ICU Analysis plugin to sort by language properly
RUN bin/elasticsearch-plugin install analysis-icu
302 changes: 150 additions & 152 deletions src/Resources/definition/product/1.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,166 +83,164 @@
}
},
"mappings": {
"_doc": {
"properties": {
"name": {
"type": "text",
"analyzer": "stemming",
"fields": {
"full_with_diacritic": {
"type": "text",
"analyzer": "full_with_diacritic"
},
"full_without_diacritic": {
"type": "text",
"analyzer": "full_without_diacritic"
},
"edge_ngram_with_diacritic": {
"type": "text",
"analyzer": "edge_ngram_with_diacritic"
},
"edge_ngram_without_diacritic": {
"type": "text",
"analyzer": "edge_ngram_without_diacritic"
},
"keyword": {
"type": "icu_collation_keyword",
"language": "en",
"index": false
}
"properties": {
"name": {
"type": "text",
"analyzer": "stemming",
"fields": {
"full_with_diacritic": {
"type": "text",
"analyzer": "full_with_diacritic"
},
"full_without_diacritic": {
"type": "text",
"analyzer": "full_without_diacritic"
},
"edge_ngram_with_diacritic": {
"type": "text",
"analyzer": "edge_ngram_with_diacritic"
},
"edge_ngram_without_diacritic": {
"type": "text",
"analyzer": "edge_ngram_without_diacritic"
},
"keyword": {
"type": "icu_collation_keyword",
"language": "en",
"index": false
}
},
"catnum": {
"type": "text",
"analyzer": "keyword",
"fields": {
"edge_ngram": {
"type": "text",
"analyzer": "edge_ngram_unanalyzed",
"search_analyzer": "keyword"
}
}
},
"catnum": {
"type": "text",
"analyzer": "keyword",
"fields": {
"edge_ngram": {
"type": "text",
"analyzer": "edge_ngram_unanalyzed",
"search_analyzer": "keyword"
}
},
"partno": {
"type": "text",
"analyzer": "keyword",
"fields": {
"edge_ngram": {
"type": "text",
"analyzer": "edge_ngram_unanalyzed",
"search_analyzer": "keyword"
}
}
},
"partno": {
"type": "text",
"analyzer": "keyword",
"fields": {
"edge_ngram": {
"type": "text",
"analyzer": "edge_ngram_unanalyzed",
"search_analyzer": "keyword"
}
},
"ean": {
"type": "text",
"analyzer": "keyword",
"fields": {
"edge_ngram": {
"type": "text",
"analyzer": "edge_ngram_unanalyzed",
"search_analyzer": "keyword"
}
}
},
"ean": {
"type": "text",
"analyzer": "keyword",
"fields": {
"edge_ngram": {
"type": "text",
"analyzer": "edge_ngram_unanalyzed",
"search_analyzer": "keyword"
}
},
"short_description": {
"type": "text",
"analyzer": "edge_ngram_without_diacritic"
},
"description": {
"type": "text",
"analyzer": "edge_ngram_without_diacritic_html"
},
"flags": {
"type": "integer"
},
"brand": {
"type": "integer"
},
"categories": {
"type": "integer"
},
"prices": {
"type": "nested",
"properties": {
"pricing_group_id": {
"type": "integer"
},
"price_with_vat": {
"type": "float"
},
"price_without_vat": {
"type": "float"
},
"vat": {
"type": "float"
},
"price_from": {
"type": "boolean"
}
}
},
"short_description": {
"type": "text",
"analyzer": "edge_ngram_without_diacritic"
},
"description": {
"type": "text",
"analyzer": "edge_ngram_without_diacritic_html"
},
"flags": {
"type": "integer"
},
"brand": {
"type": "integer"
},
"categories": {
"type": "integer"
},
"prices": {
"type": "nested",
"properties": {
"pricing_group_id": {
"type": "integer"
},
"price_with_vat": {
"type": "float"
},
"price_without_vat": {
"type": "float"
},
"vat": {
"type": "float"
},
"price_from": {
"type": "boolean"
}
},
"in_stock": {
"type": "boolean"
},
"parameters": {
"type": "nested",
"properties": {
"parameter_id": {
"type": "integer"
},
"parameter_value_id": {
"type": "integer"
}
}
},
"in_stock": {
"type": "boolean"
},
"parameters": {
"type": "nested",
"properties": {
"parameter_id": {
"type": "integer"
},
"parameter_value_id": {
"type": "integer"
}
},
"ordering_priority": {
"type": "integer"
},
"calculated_selling_denied": {
"type": "boolean"
},
"selling_denied": {
"type": "boolean"
},
"availability": {
"type": "text"
},
"is_main_variant": {
"type": "boolean"
},
"detail_url": {
"type": "text"
},
"visibility": {
"type": "nested",
"properties": {
"pricing_group_id": {
"type": "integer"
},
"visible": {
"type": "boolean"
}
}
},
"ordering_priority": {
"type": "integer"
},
"calculated_selling_denied": {
"type": "boolean"
},
"selling_denied": {
"type": "boolean"
},
"availability": {
"type": "text"
},
"is_main_variant": {
"type": "boolean"
},
"detail_url": {
"type": "text"
},
"visibility": {
"type": "nested",
"properties": {
"pricing_group_id": {
"type": "integer"
},
"visible": {
"type": "boolean"
}
},
"uuid": {
"type": "text"
},
"unit": {
"type": "text"
},
"is_using_stock": {
"type": "boolean"
},
"stock_quantity": {
"type": "integer"
},
"variants": {
"type": "integer"
},
"main_variant_id": {
"type": "integer"
}
},
"uuid": {
"type": "text"
},
"unit": {
"type": "text"
},
"is_using_stock": {
"type": "boolean"
},
"stock_quantity": {
"type": "integer"
},
"variants": {
"type": "integer"
},
"main_variant_id": {
"type": "integer"
}
}
}
Expand Down
Loading

0 comments on commit 6f71d95

Please sign in to comment.