| 1 |
17.64 ms |
Request:
{"index":"staging-67_product","search_type":"query_then_fetch","track_total_hits":true,"body":{"query":{"bool":{"filter":[{"bool":{"must":[{"bool":{"must":[{"term":{"active":true}},{"range":{"visibility_132e445c03814d67ac47c04afb6d5d99":{"gte":30}}}]}},{"term":{"categoryTree":"87fc2df230d297e89363f164c691fa75"}},{"exists":{"field":"displayGroup"}}]}}],"should":[{"constant_score":{"filter":{"bool":{"should":[{"nested":{"path":"streams","query":{"terms":{"streams.id":["018f0ea07ad57e59841906b9dac1ae23"]}}}}]}},"boost":350.0}},{"constant_score":{"filter":{"bool":{"should":[{"nested":{"path":"streams","query":{"terms":{"streams.id":["018f0ea3242c77a3ad7aaa686586f79c"]}}}}]}},"boost":150.0}},{"constant_score":{"filter":{"bool":{"should":[{"nested":{"path":"streams","query":{"terms":{"streams.id":["018fe3229d5677949c032d1a4983f006"]}}}}]}},"boost":350.0}},{"constant_score":{"filter":{"bool":{"should":[{"nested":{"path":"streams","query":{"terms":{"streams.id":["f4e67c126b4e4b4f8b4f4b8295613b5b"]}}}}]}},"boost":1000.0}},{"constant_score":{"filter":{"bool":{"should":[{"nested":{"path":"streams","query":{"terms":{"streams.id":["15706c7290284128acdcdc0aa07bda52"]}}}}]}},"boost":400.0}},{"constant_score":{"filter":{"bool":{"should":[{"nested":{"path":"streams","query":{"terms":{"streams.id":["a33aa3f47e2147c9be62a08216f92c1c"]}}}}]}},"boost":300.0}},{"constant_score":{"filter":{"bool":{"should":[{"nested":{"path":"streams","query":{"terms":{"streams.id":["e3d0223b8cfd4edb8b5581ae7e9ab5cf"]}}}}]}},"boost":300.0}},{"constant_score":{"filter":{"bool":{"should":[{"nested":{"path":"streams","query":{"terms":{"streams.id":["62000891305f4ae4837e16e336cf2868"]}}}}]}},"boost":200.0}},{"constant_score":{"filter":{"bool":{"should":[{"nested":{"path":"streams","query":{"terms":{"streams.id":["9222eeebbd984a1fbba6521d6c03bc43"]}}}}]}},"boost":250.0}},{"constant_score":{"filter":{"bool":{"should":[{"nested":{"path":"streams","query":{"terms":{"streams.id":["cb292e1aaf854891a0d4e2fca32dd02f"]}}}}]}},"boost":100.0}}]}},"sort":[{"customFields.2fbb5fe2e29a4d70aa5854ce7ce3e20b.acris_search_sorting_relevance":{"unmapped_type":"integer","missing":0,"order":"DESC"}},{"_score":{"order":"DESC"}},{"markAsTopseller":{"order":"DESC"}},{"autoIncrement":{"order":"DESC"}},{"id":{"order":"ASC"}}],"aggregations":{"total-count":{"cardinality":{"field":"displayGroup"}}},"from":0,"size":24,"collapse":{"field":"displayGroup"},"timeout":"5s"}}
{
"took": 3,
"timed_out": false,
"_shards": {
"total": 1,
"successful": 1,
"skipped": 0,
"failed": 0
},
"hits": {
"total": {
"value": 182,
"relation": "eq"
},
"max_score": null,
"hits": [
{
"_index": "staging-67_product_1776930924",
"_id": "69c681a6cf39186616a938c2edd3de99",
"_score": 1100.0,
"_source": {
"id": "69c681a6cf39186616a938c2edd3de99",
"autoIncrement": 137211.0
},
"fields": {
"displayGroup": [
"9c2a438627f60650d4135a8c428263f3"
]
},
"sort": [
0,
1100.0,
0,
137211,
"69c681a6cf39186616a938c2edd3de99"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "a30cde7e93e9921c9b87c503c76ef24c",
"_score": 1100.0,
"_source": {
"id": "a30cde7e93e9921c9b87c503c76ef24c",
"autoIncrement": 137210.0
},
"fields": {
"displayGroup": [
"8bb58a9b204cd8b4a9a358ad45dd7e4d"
]
},
"sort": [
0,
1100.0,
0,
137210,
"a30cde7e93e9921c9b87c503c76ef24c"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "29e7b297738506f35247b19198d68ec2",
"_score": 1100.0,
"_source": {
"id": "29e7b297738506f35247b19198d68ec2",
"autoIncrement": 137209.0
},
"fields": {
"displayGroup": [
"b1335fd5866c1ad5a9b2bb5e2f29f706"
]
},
"sort": [
0,
1100.0,
0,
137209,
"29e7b297738506f35247b19198d68ec2"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "18f1874692095783d2e076b735db0903",
"_score": 1100.0,
"_source": {
"id": "18f1874692095783d2e076b735db0903",
"autoIncrement": 137208.0
},
"fields": {
"displayGroup": [
"9bccb86f54e671146f561f946db1b1ad"
]
},
"sort": [
0,
1100.0,
0,
137208,
"18f1874692095783d2e076b735db0903"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "6e7110e7994c0d69d4a538d4f45b4071",
"_score": 1100.0,
"_source": {
"id": "6e7110e7994c0d69d4a538d4f45b4071",
"autoIncrement": 137207.0
},
"fields": {
"displayGroup": [
"0f4bc2ccb69ca9d9ab1897e84e274ee8"
]
},
"sort": [
0,
1100.0,
0,
137207,
"6e7110e7994c0d69d4a538d4f45b4071"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "abf3801a5a4ad01ec4315ada8c5f822c",
"_score": 1100.0,
"_source": {
"id": "abf3801a5a4ad01ec4315ada8c5f822c",
"autoIncrement": 137206.0
},
"fields": {
"displayGroup": [
"b7ae89d10d07ed2b5ec277c3c1759ca1"
]
},
"sort": [
0,
1100.0,
0,
137206,
"abf3801a5a4ad01ec4315ada8c5f822c"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "108d1808befb5e9e73c2a120476925df",
"_score": 1100.0,
"_source": {
"id": "108d1808befb5e9e73c2a120476925df",
"autoIncrement": 137205.0
},
"fields": {
"displayGroup": [
"2a40439c569ff9d29ae53f8b932e8667"
]
},
"sort": [
0,
1100.0,
0,
137205,
"108d1808befb5e9e73c2a120476925df"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "d7ba3bdf5b6d358040f2904a0bcf59f9",
"_score": 1100.0,
"_source": {
"id": "d7ba3bdf5b6d358040f2904a0bcf59f9",
"autoIncrement": 137204.0
},
"fields": {
"displayGroup": [
"f8444871e234e5cf537aedafa00986b3"
]
},
"sort": [
0,
1100.0,
0,
137204,
"d7ba3bdf5b6d358040f2904a0bcf59f9"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "fd578f9e8570c9692cf2a67dcd2d096c",
"_score": 1100.0,
"_source": {
"id": "fd578f9e8570c9692cf2a67dcd2d096c",
"autoIncrement": 137203.0
},
"fields": {
"displayGroup": [
"b825c308d483b4ea3f2631649d6b9b20"
]
},
"sort": [
0,
1100.0,
0,
137203,
"fd578f9e8570c9692cf2a67dcd2d096c"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "ead04c4b24d1328886a90c935b4c6095",
"_score": 1100.0,
"_source": {
"id": "ead04c4b24d1328886a90c935b4c6095",
"autoIncrement": 137202.0
},
"fields": {
"displayGroup": [
"f92591839d60d62140301759f8650a46"
]
},
"sort": [
0,
1100.0,
0,
137202,
"ead04c4b24d1328886a90c935b4c6095"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "df8ff107273fdb917a6b293ef3a66b6d",
"_score": 1100.0,
"_source": {
"id": "df8ff107273fdb917a6b293ef3a66b6d",
"autoIncrement": 137201.0
},
"fields": {
"displayGroup": [
"bf89166935ae4bda8885b6866bae92c5"
]
},
"sort": [
0,
1100.0,
0,
137201,
"df8ff107273fdb917a6b293ef3a66b6d"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "5f2ca5f1e5052080e599c9eebfa7072e",
"_score": 1100.0,
"_source": {
"id": "5f2ca5f1e5052080e599c9eebfa7072e",
"autoIncrement": 137200.0
},
"fields": {
"displayGroup": [
"6f6c8023ebb0eac127346fe1fb3d7dc4"
]
},
"sort": [
0,
1100.0,
0,
137200,
"5f2ca5f1e5052080e599c9eebfa7072e"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "5438061bc4ebbd9db07d863694dd0cb7",
"_score": 1100.0,
"_source": {
"id": "5438061bc4ebbd9db07d863694dd0cb7",
"autoIncrement": 137199.0
},
"fields": {
"displayGroup": [
"368903c443da0c193f121ac718d2a38e"
]
},
"sort": [
0,
1100.0,
0,
137199,
"5438061bc4ebbd9db07d863694dd0cb7"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "0ec30a1a5e729a19e2fd42c3c5efd25e",
"_score": 1100.0,
"_source": {
"id": "0ec30a1a5e729a19e2fd42c3c5efd25e",
"autoIncrement": 137198.0
},
"fields": {
"displayGroup": [
"e518e810dc1f95785adbce0785245e5d"
]
},
"sort": [
0,
1100.0,
0,
137198,
"0ec30a1a5e729a19e2fd42c3c5efd25e"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "707da796a6508a9e95b2668ad49b8487",
"_score": 1100.0,
"_source": {
"id": "707da796a6508a9e95b2668ad49b8487",
"autoIncrement": 137197.0
},
"fields": {
"displayGroup": [
"2ba64abb5dce5c152f637dc167e86cc3"
]
},
"sort": [
0,
1100.0,
0,
137197,
"707da796a6508a9e95b2668ad49b8487"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "d503a620c8107d18252dd087f9831f23",
"_score": 1100.0,
"_source": {
"id": "d503a620c8107d18252dd087f9831f23",
"autoIncrement": 137196.0
},
"fields": {
"displayGroup": [
"ffd31478f40e4954facea7463a26da22"
]
},
"sort": [
0,
1100.0,
0,
137196,
"d503a620c8107d18252dd087f9831f23"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "3be1185c2c3613452fa763a6a39abd3f",
"_score": 1100.0,
"_source": {
"id": "3be1185c2c3613452fa763a6a39abd3f",
"autoIncrement": 137195.0
},
"fields": {
"displayGroup": [
"a487577614dd9d0f0c1ddf171a2c4ee9"
]
},
"sort": [
0,
1100.0,
0,
137195,
"3be1185c2c3613452fa763a6a39abd3f"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "811e555a90ea6646589d75a4543d3c45",
"_score": 1100.0,
"_source": {
"id": "811e555a90ea6646589d75a4543d3c45",
"autoIncrement": 137194.0
},
"fields": {
"displayGroup": [
"bef93988e59b2cd41d63c8a3d05c3154"
]
},
"sort": [
0,
1100.0,
0,
137194,
"811e555a90ea6646589d75a4543d3c45"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "82eff0368480ff49a574220178a7924a",
"_score": 1100.0,
"_source": {
"id": "82eff0368480ff49a574220178a7924a",
"autoIncrement": 137193.0
},
"fields": {
"displayGroup": [
"362c859419b0010915411182d68d6926"
]
},
"sort": [
0,
1100.0,
0,
137193,
"82eff0368480ff49a574220178a7924a"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "6cbc7ecdf07e9ef31a04f99614c407fd",
"_score": 1100.0,
"_source": {
"id": "6cbc7ecdf07e9ef31a04f99614c407fd",
"autoIncrement": 137192.0
},
"fields": {
"displayGroup": [
"b4be7c141e3a5e12732a8ec1dd24c5be"
]
},
"sort": [
0,
1100.0,
0,
137192,
"6cbc7ecdf07e9ef31a04f99614c407fd"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "6784d050552baabf7dbc9ed286cdf604",
"_score": 1100.0,
"_source": {
"id": "6784d050552baabf7dbc9ed286cdf604",
"autoIncrement": 136457.0
},
"fields": {
"displayGroup": [
"99a780984aa1ce4f1690369bad3961be"
]
},
"sort": [
0,
1100.0,
0,
136457,
"6784d050552baabf7dbc9ed286cdf604"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "d3defde75ca2dfeab58e9a423457fc6d",
"_score": 1100.0,
"_source": {
"id": "d3defde75ca2dfeab58e9a423457fc6d",
"autoIncrement": 127784.0
},
"fields": {
"displayGroup": [
"fedc911d12556ed5eceba56ce7450c72"
]
},
"sort": [
0,
1100.0,
0,
127784,
"d3defde75ca2dfeab58e9a423457fc6d"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "a78062c053904c0c23826279aa4ccf4e",
"_score": 1100.0,
"_source": {
"id": "a78062c053904c0c23826279aa4ccf4e",
"autoIncrement": 121100.0
},
"fields": {
"displayGroup": [
"8a3e1a21370a5e35c39a6e4c5a1c276c"
]
},
"sort": [
0,
1100.0,
0,
121100,
"a78062c053904c0c23826279aa4ccf4e"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "eedf4af185a7b1281be6c9ff63932554",
"_score": 1100.0,
"_source": {
"id": "eedf4af185a7b1281be6c9ff63932554",
"autoIncrement": 114137.0
},
"fields": {
"displayGroup": [
"1b7e740f2f3271c83536d0e66de6efb9"
]
},
"sort": [
0,
1100.0,
0,
114137,
"eedf4af185a7b1281be6c9ff63932554"
]
}
]
},
"aggregations": {
"total-count": {
"value": 182
}
}
}
Shopware\Elasticsearch\Framework\DataAbstractionLayer\ElasticsearchEntitySearcher:search
|
| 2 |
6.25 ms |
Request:
{"index":"staging-67_product","track_total_hits":false,"body":{"query":{"bool":{"filter":[{"bool":{"must":[{"bool":{"must":[{"term":{"active":true}},{"range":{"visibility_132e445c03814d67ac47c04afb6d5d99":{"gte":30}}}]}},{"term":{"categoryTree":"87fc2df230d297e89363f164c691fa75"}},{"exists":{"field":"displayGroup"}}]}}]}},"aggregations":{"price":{"stats":{"script":{"source":"double getPrice(def accessors, def doc, def decimals, def round, def multiplier) {\n for (accessor in accessors) {\n def key = accessor['key'];\n\n if (!doc.containsKey(key) || doc[key].empty) {\n continue;\n }\n\n def factor = accessor['factor'];\n def value = doc[key].value * factor;\n\n value = Math.round(value * decimals);\n value = (double) value \/ decimals;\n\n if (!round) {\n return (double) value;\n }\n\n value = Math.round(value * multiplier);\n\n value = (double) value \/ multiplier;\n\n return (double) value;\n }\n\n return 0;\n}\n\nreturn getPrice(params['accessors'], doc, params['decimals'], params['round'], params['multiplier']);\n","lang":"painless","params":{"accessors":[{"key":"cheapest_price_rule07f438d06a8a4951a3023a5e7810f884_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net","factor":1},{"key":"cheapest_price_rule2772e1f3cc52436593ed4c7b229426fe_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net","factor":1},{"key":"cheapest_price_rulec019dd2f47394d68874602781a1eb06a_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net","factor":1},{"key":"cheapest_price_rulef43239e32e16483181a57e49cae1db77_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net","factor":1},{"key":"cheapest_price_rule643070c6755c43f3ad58eba50f4d0b17_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net","factor":1},{"key":"cheapest_price_rulea755c64836d24743b295845250c45862_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net","factor":1},{"key":"cheapest_price_ruledefault_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net","factor":1}],"decimals":100,"round":true,"multiplier":100.0}}}},"rating-exists":{"filter":{"range":{"ratingAverage":{"gte":0.0}}},"aggregations":{"rating":{"max":{"field":"ratingAverage"}}}},"shipping-free-filter":{"filter":{"term":{"shippingFree":true}},"aggregations":{"shipping-free":{"max":{"field":"shippingFree"}}}},"properties":{"nested":{"path":"properties"},"aggregations":{"properties":{"terms":{"field":"properties.id","size":10000}}}},"options":{"nested":{"path":"options"},"aggregations":{"options":{"terms":{"field":"options.id","size":10000}}}},"manufacturer-count-filter":{"composite":{"sources":[{"manufacturer-count-filter.sorting":{"terms":{"field":"manufacturerId","order":"ASC"}}},{"manufacturer-count-filter.key":{"terms":{"field":"manufacturerId"}}}],"size":"99999"}},"bool-reduced":{"filter":{"script":{"script":{"source":"String getPercentageKey(def accessors, def doc) {\n for (accessor in accessors) {\n def key = accessor['key'];\n if (!doc.containsKey(key) || doc[key].empty) {\n continue;\n }\n\n return key;\n }\n\n return '';\n}\n\ndef percentageKey = getPercentageKey(params['accessors'], doc);\n\nif (percentageKey == '') {\n if (params.containsKey('eq') && params['eq'] === null) {\n return true;\n }\n\n return false;\n}\n\ndef percentage = (double) doc[percentageKey].value;\n\ndef match = true;\nif (params.containsKey('eq')) {\n match = match && percentage == params['eq'];\n}\nif (params.containsKey('gte')) {\n match = match && percentage >= params['gte'];\n}\nif (params.containsKey('gt')) {\n match = match && percentage > params['gt'];\n}\nif (params.containsKey('lte')) {\n match = match && percentage <= params['lte'];\n}\nif (params.containsKey('lt')) {\n match = match && percentage < params['lt'];\n}\n\nreturn match;\n","params":{"gt":1.0,"accessors":[{"key":"cheapest_price_rule07f438d06a8a4951a3023a5e7810f884_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage","factor":1},{"key":"cheapest_price_rule2772e1f3cc52436593ed4c7b229426fe_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage","factor":1},{"key":"cheapest_price_rulec019dd2f47394d68874602781a1eb06a_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage","factor":1},{"key":"cheapest_price_rulef43239e32e16483181a57e49cae1db77_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage","factor":1},{"key":"cheapest_price_rule643070c6755c43f3ad58eba50f4d0b17_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage","factor":1},{"key":"cheapest_price_rulea755c64836d24743b295845250c45862_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage","factor":1},{"key":"cheapest_price_ruledefault_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage","factor":1}]}}}},"aggregations":{"bool-reduced":{"value_count":{"field":"id"}}}},"width":{"stats":{"field":"width"}},"width-stats":{"filter":{"range":{"width":{"gt":0.0}}},"aggregations":{"width-stats":{"stats":{"field":"width"}}}},"height":{"stats":{"field":"height"}},"height-stats":{"filter":{"range":{"height":{"gt":0.0}}},"aggregations":{"height-stats":{"stats":{"field":"height"}}}},"tiefe":{"stats":{"field":"attribute_tiefe"}},"multi-typModel":{"composite":{"sources":[{"multi-typModel.sorting":{"terms":{"field":"attribute_typModel","order":"ASC"}}},{"multi-typModel.key":{"terms":{"field":"attribute_typModel"}}}],"size":"99999"}},"multi-farbe":{"composite":{"sources":[{"multi-farbe.sorting":{"terms":{"field":"attribute_farbe","order":"ASC"}}},{"multi-farbe.key":{"terms":{"field":"attribute_farbe"}}}],"size":"99999"}},"multi-materialBehaelter":{"composite":{"sources":[{"multi-materialBehaelter.sorting":{"terms":{"field":"attribute_materialBehaelter","order":"ASC"}}},{"multi-materialBehaelter.key":{"terms":{"field":"attribute_materialBehaelter"}}}],"size":"99999"}},"multi-behaelterfarbe":{"composite":{"sources":[{"multi-behaelterfarbe.sorting":{"terms":{"field":"attribute_behaelterfarbe","order":"ASC"}}},{"multi-behaelterfarbe.key":{"terms":{"field":"attribute_behaelterfarbe"}}}],"size":"99999"}},"range-behaeltervolumen":{"stats":{"field":"attribute_behaeltervolumen"}},"multi-temperaturbereich":{"composite":{"sources":[{"multi-temperaturbereich.sorting":{"terms":{"field":"attribute_temperaturbereich","order":"ASC"}}},{"multi-temperaturbereich.key":{"terms":{"field":"attribute_temperaturbereich"}}}],"size":"99999"}},"range-gewichtCa":{"stats":{"field":"attribute_gewichtCa"}},"manufacturer-count":{"terms":{"field":"manufacturerId","size":10000}}},"size":0,"timeout":"5s"},"search_type":"query_then_fetch"}
POST http://localhost:9200/staging-67_product/_search?track_total_hits=0&search_type=query_then_fetch
Accept: application/json
Content-Type: application/json
{
"query": {
"bool": {
"filter": [
{
"bool": {
"must": [
{
"bool": {
"must": [
{
"term": {
"active": true
}
},
{
"range": {
"visibility_132e445c03814d67ac47c04afb6d5d99": {
"gte": 30
}
}
}
]
}
},
{
"term": {
"categoryTree": "87fc2df230d297e89363f164c691fa75"
}
},
{
"exists": {
"field": "displayGroup"
}
}
]
}
}
]
}
},
"aggregations": {
"price": {
"stats": {
"script": {
"source": "double getPrice(def accessors, def doc, def decimals, def round, def multiplier) {\n for (accessor in accessors) {\n def key = accessor['key'];\n\n if (!doc.containsKey(key) || doc[key].empty) {\n continue;\n }\n\n def factor = accessor['factor'];\n def value = doc[key].value * factor;\n\n value = Math.round(value * decimals);\n value = (double) value \/ decimals;\n\n if (!round) {\n return (double) value;\n }\n\n value = Math.round(value * multiplier);\n\n value = (double) value \/ multiplier;\n\n return (double) value;\n }\n\n return 0;\n}\n\nreturn getPrice(params['accessors'], doc, params['decimals'], params['round'], params['multiplier']);\n",
"lang": "painless",
"params": {
"accessors": [
{
"key": "cheapest_price_rule07f438d06a8a4951a3023a5e7810f884_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net",
"factor": 1
},
{
"key": "cheapest_price_rule2772e1f3cc52436593ed4c7b229426fe_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net",
"factor": 1
},
{
"key": "cheapest_price_rulec019dd2f47394d68874602781a1eb06a_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net",
"factor": 1
},
{
"key": "cheapest_price_rulef43239e32e16483181a57e49cae1db77_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net",
"factor": 1
},
{
"key": "cheapest_price_rule643070c6755c43f3ad58eba50f4d0b17_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net",
"factor": 1
},
{
"key": "cheapest_price_rulea755c64836d24743b295845250c45862_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net",
"factor": 1
},
{
"key": "cheapest_price_ruledefault_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net",
"factor": 1
}
],
"decimals": 100,
"round": true,
"multiplier": 100.0
}
}
}
},
"rating-exists": {
"filter": {
"range": {
"ratingAverage": {
"gte": 0.0
}
}
},
"aggregations": {
"rating": {
"max": {
"field": "ratingAverage"
}
}
}
},
"shipping-free-filter": {
"filter": {
"term": {
"shippingFree": true
}
},
"aggregations": {
"shipping-free": {
"max": {
"field": "shippingFree"
}
}
}
},
"properties": {
"nested": {
"path": "properties"
},
"aggregations": {
"properties": {
"terms": {
"field": "properties.id",
"size": 10000
}
}
}
},
"options": {
"nested": {
"path": "options"
},
"aggregations": {
"options": {
"terms": {
"field": "options.id",
"size": 10000
}
}
}
},
"manufacturer-count-filter": {
"composite": {
"sources": [
{
"manufacturer-count-filter.sorting": {
"terms": {
"field": "manufacturerId",
"order": "ASC"
}
}
},
{
"manufacturer-count-filter.key": {
"terms": {
"field": "manufacturerId"
}
}
}
],
"size": "99999"
}
},
"bool-reduced": {
"filter": {
"script": {
"script": {
"source": "String getPercentageKey(def accessors, def doc) {\n for (accessor in accessors) {\n def key = accessor['key'];\n if (!doc.containsKey(key) || doc[key].empty) {\n continue;\n }\n\n return key;\n }\n\n return '';\n}\n\ndef percentageKey = getPercentageKey(params['accessors'], doc);\n\nif (percentageKey == '') {\n if (params.containsKey('eq') && params['eq'] === null) {\n return true;\n }\n\n return false;\n}\n\ndef percentage = (double) doc[percentageKey].value;\n\ndef match = true;\nif (params.containsKey('eq')) {\n match = match && percentage == params['eq'];\n}\nif (params.containsKey('gte')) {\n match = match && percentage >= params['gte'];\n}\nif (params.containsKey('gt')) {\n match = match && percentage > params['gt'];\n}\nif (params.containsKey('lte')) {\n match = match && percentage <= params['lte'];\n}\nif (params.containsKey('lt')) {\n match = match && percentage < params['lt'];\n}\n\nreturn match;\n",
"params": {
"gt": 1.0,
"accessors": [
{
"key": "cheapest_price_rule07f438d06a8a4951a3023a5e7810f884_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage",
"factor": 1
},
{
"key": "cheapest_price_rule2772e1f3cc52436593ed4c7b229426fe_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage",
"factor": 1
},
{
"key": "cheapest_price_rulec019dd2f47394d68874602781a1eb06a_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage",
"factor": 1
},
{
"key": "cheapest_price_rulef43239e32e16483181a57e49cae1db77_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage",
"factor": 1
},
{
"key": "cheapest_price_rule643070c6755c43f3ad58eba50f4d0b17_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage",
"factor": 1
},
{
"key": "cheapest_price_rulea755c64836d24743b295845250c45862_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage",
"factor": 1
},
{
"key": "cheapest_price_ruledefault_currencyb7d2554b0ce847cd82f3ac9bd1c0dfca_net_percentage",
"factor": 1
}
]
}
}
}
},
"aggregations": {
"bool-reduced": {
"value_count": {
"field": "id"
}
}
}
},
"width": {
"stats": {
"field": "width"
}
},
"width-stats": {
"filter": {
"range": {
"width": {
"gt": 0.0
}
}
},
"aggregations": {
"width-stats": {
"stats": {
"field": "width"
}
}
}
},
"height": {
"stats": {
"field": "height"
}
},
"height-stats": {
"filter": {
"range": {
"height": {
"gt": 0.0
}
}
},
"aggregations": {
"height-stats": {
"stats": {
"field": "height"
}
}
}
},
"tiefe": {
"stats": {
"field": "attribute_tiefe"
}
},
"multi-typModel": {
"composite": {
"sources": [
{
"multi-typModel.sorting": {
"terms": {
"field": "attribute_typModel",
"order": "ASC"
}
}
},
{
"multi-typModel.key": {
"terms": {
"field": "attribute_typModel"
}
}
}
],
"size": "99999"
}
},
"multi-farbe": {
"composite": {
"sources": [
{
"multi-farbe.sorting": {
"terms": {
"field": "attribute_farbe",
"order": "ASC"
}
}
},
{
"multi-farbe.key": {
"terms": {
"field": "attribute_farbe"
}
}
}
],
"size": "99999"
}
},
"multi-materialBehaelter": {
"composite": {
"sources": [
{
"multi-materialBehaelter.sorting": {
"terms": {
"field": "attribute_materialBehaelter",
"order": "ASC"
}
}
},
{
"multi-materialBehaelter.key": {
"terms": {
"field": "attribute_materialBehaelter"
}
}
}
],
"size": "99999"
}
},
"multi-behaelterfarbe": {
"composite": {
"sources": [
{
"multi-behaelterfarbe.sorting": {
"terms": {
"field": "attribute_behaelterfarbe",
"order": "ASC"
}
}
},
{
"multi-behaelterfarbe.key": {
"terms": {
"field": "attribute_behaelterfarbe"
}
}
}
],
"size": "99999"
}
},
"range-behaeltervolumen": {
"stats": {
"field": "attribute_behaeltervolumen"
}
},
"multi-temperaturbereich": {
"composite": {
"sources": [
{
"multi-temperaturbereich.sorting": {
"terms": {
"field": "attribute_temperaturbereich",
"order": "ASC"
}
}
},
{
"multi-temperaturbereich.key": {
"terms": {
"field": "attribute_temperaturbereich"
}
}
}
],
"size": "99999"
}
},
"range-gewichtCa": {
"stats": {
"field": "attribute_gewichtCa"
}
},
"manufacturer-count": {
"terms": {
"field": "manufacturerId",
"size": 10000
}
}
},
"size": 0,
"timeout": "5s"
}
{
"took": 0,
"timed_out": false,
"_shards": {
"total": 1,
"successful": 1,
"skipped": 0,
"failed": 0
},
"hits": {
"max_score": null,
"hits": []
},
"aggregations": {
"price": {
"count": 182,
"min": 1.0,
"max": 199.0,
"avg": 84.4423076923077,
"sum": 15368.5
},
"rating-exists": {
"doc_count": 182,
"rating": {
"value": 0.0
}
},
"shipping-free-filter": {
"doc_count": 0,
"shipping-free": {
"value": null
}
},
"properties": {
"doc_count": 0,
"properties": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": []
}
},
"options": {
"doc_count": 0,
"options": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": []
}
},
"manufacturer-count-filter": {
"after_key": {
"manufacturer-count-filter.sorting": "e92077b923fe7f60b3b5ea31cceb8c2a",
"manufacturer-count-filter.key": "e92077b923fe7f60b3b5ea31cceb8c2a"
},
"buckets": [
{
"key": {
"manufacturer-count-filter.sorting": "25cd199e2426c18067f06af2b5d77410",
"manufacturer-count-filter.key": "25cd199e2426c18067f06af2b5d77410"
},
"doc_count": 60
},
{
"key": {
"manufacturer-count-filter.sorting": "4197154d9f9e3722cd4472257440a963",
"manufacturer-count-filter.key": "4197154d9f9e3722cd4472257440a963"
},
"doc_count": 16
},
{
"key": {
"manufacturer-count-filter.sorting": "44c6ac76dcdb89d2f0251cef18bbdd36",
"manufacturer-count-filter.key": "44c6ac76dcdb89d2f0251cef18bbdd36"
},
"doc_count": 16
},
{
"key": {
"manufacturer-count-filter.sorting": "5267ee69add37a0408db89f9cd30c57f",
"manufacturer-count-filter.key": "5267ee69add37a0408db89f9cd30c57f"
},
"doc_count": 28
},
{
"key": {
"manufacturer-count-filter.sorting": "63ef50cc53f0d953193e481e92340cb7",
"manufacturer-count-filter.key": "63ef50cc53f0d953193e481e92340cb7"
},
"doc_count": 3
},
{
"key": {
"manufacturer-count-filter.sorting": "80a4c612e0000b55478bc9962efd4845",
"manufacturer-count-filter.key": "80a4c612e0000b55478bc9962efd4845"
},
"doc_count": 4
},
{
"key": {
"manufacturer-count-filter.sorting": "b6262a828613f753fc05485b9f3384dc",
"manufacturer-count-filter.key": "b6262a828613f753fc05485b9f3384dc"
},
"doc_count": 7
},
{
"key": {
"manufacturer-count-filter.sorting": "e92077b923fe7f60b3b5ea31cceb8c2a",
"manufacturer-count-filter.key": "e92077b923fe7f60b3b5ea31cceb8c2a"
},
"doc_count": 48
}
]
},
"bool-reduced": {
"doc_count": 4,
"bool-reduced": {
"value": 4
}
},
"width": {
"count": 180,
"min": 100.0,
"max": 310.0,
"avg": 199.7111111111111,
"sum": 35948.0
},
"width-stats": {
"doc_count": 180,
"width-stats": {
"count": 180,
"min": 100.0,
"max": 310.0,
"avg": 199.7111111111111,
"sum": 35948.0
}
},
"height": {
"count": 180,
"min": 45.0,
"max": 250.0,
"avg": 141.32777777777778,
"sum": 25439.0
},
"height-stats": {
"doc_count": 180,
"height-stats": {
"count": 180,
"min": 45.0,
"max": 250.0,
"avg": 141.32777777777778,
"sum": 25439.0
}
},
"tiefe": {
"count": 174,
"min": 85.0,
"max": 600.0,
"avg": 342.0689655172414,
"sum": 59520.0
},
"multi-typModel": {
"after_key": {
"multi-typModel.sorting": "Zubeh\u00f6r Fachbodenregale",
"multi-typModel.key": "Zubeh\u00f6r Fachbodenregale"
},
"buckets": [
{
"key": {
"multi-typModel.sorting": "Kleinteilemagazine",
"multi-typModel.key": "Kleinteilemagazine"
},
"doc_count": 7
},
{
"key": {
"multi-typModel.sorting": "Regalk\u00e4sten",
"multi-typModel.key": "Regalk\u00e4sten"
},
"doc_count": 32
},
{
"key": {
"multi-typModel.sorting": "Sichtlagerk\u00e4sten",
"multi-typModel.key": "Sichtlagerk\u00e4sten"
},
"doc_count": 139
},
{
"key": {
"multi-typModel.sorting": "Zubeh\u00f6r Fachbodenregale",
"multi-typModel.key": "Zubeh\u00f6r Fachbodenregale"
},
"doc_count": 4
}
]
},
"multi-farbe": {
"after_key": {
"multi-farbe.sorting": "transparent",
"multi-farbe.key": "transparent"
},
"buckets": [
{
"key": {
"multi-farbe.sorting": "RAL 7023 betongrau",
"multi-farbe.key": "RAL 7023 betongrau"
},
"doc_count": 7
},
{
"key": {
"multi-farbe.sorting": "blau",
"multi-farbe.key": "blau"
},
"doc_count": 37
},
{
"key": {
"multi-farbe.sorting": "gelb",
"multi-farbe.key": "gelb"
},
"doc_count": 31
},
{
"key": {
"multi-farbe.sorting": "grau",
"multi-farbe.key": "grau"
},
"doc_count": 12
},
{
"key": {
"multi-farbe.sorting": "gr\u00fcn",
"multi-farbe.key": "gr\u00fcn"
},
"doc_count": 35
},
{
"key": {
"multi-farbe.sorting": "naturwei\u00df",
"multi-farbe.key": "naturwei\u00df"
},
"doc_count": 8
},
{
"key": {
"multi-farbe.sorting": "regenerat-grau",
"multi-farbe.key": "regenerat-grau"
},
"doc_count": 7
},
{
"key": {
"multi-farbe.sorting": "rot",
"multi-farbe.key": "rot"
},
"doc_count": 37
},
{
"key": {
"multi-farbe.sorting": "schwarz",
"multi-farbe.key": "schwarz"
},
"doc_count": 3
},
{
"key": {
"multi-farbe.sorting": "transparent",
"multi-farbe.key": "transparent"
},
"doc_count": 2
}
]
},
"multi-materialBehaelter": {
"buckets": []
},
"multi-behaelterfarbe": {
"buckets": []
},
"range-behaeltervolumen": {
"count": 0,
"min": null,
"max": null,
"avg": null,
"sum": 0.0
},
"multi-temperaturbereich": {
"after_key": {
"multi-temperaturbereich.sorting": "-50 bis +80 \u00b0C",
"multi-temperaturbereich.key": "-50 bis +80 \u00b0C"
},
"buckets": [
{
"key": {
"multi-temperaturbereich.sorting": "-20 bis +80 \u00b0C",
"multi-temperaturbereich.key": "-20 bis +80 \u00b0C"
},
"doc_count": 76
},
{
"key": {
"multi-temperaturbereich.sorting": "-40 bis +80 \u00b0C",
"multi-temperaturbereich.key": "-40 bis +80 \u00b0C"
},
"doc_count": 20
},
{
"key": {
"multi-temperaturbereich.sorting": "-50 bis +80 \u00b0C",
"multi-temperaturbereich.key": "-50 bis +80 \u00b0C"
},
"doc_count": 28
}
]
},
"range-gewichtCa": {
"count": 0,
"min": null,
"max": null,
"avg": null,
"sum": 0.0
},
"manufacturer-count": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"key": "25cd199e2426c18067f06af2b5d77410",
"doc_count": 60
},
{
"key": "e92077b923fe7f60b3b5ea31cceb8c2a",
"doc_count": 48
},
{
"key": "5267ee69add37a0408db89f9cd30c57f",
"doc_count": 28
},
{
"key": "4197154d9f9e3722cd4472257440a963",
"doc_count": 16
},
{
"key": "44c6ac76dcdb89d2f0251cef18bbdd36",
"doc_count": 16
},
{
"key": "b6262a828613f753fc05485b9f3384dc",
"doc_count": 7
},
{
"key": "80a4c612e0000b55478bc9962efd4845",
"doc_count": 4
},
{
"key": "63ef50cc53f0d953193e481e92340cb7",
"doc_count": 3
}
]
}
}
}
Shopware\Elasticsearch\Framework\DataAbstractionLayer\ElasticsearchEntityAggregator:aggregate
|