| 1 |
17.77 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":"6bea64103f3985500f32c4f72e408bdc"}},{"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":432,"size":24,"collapse":{"field":"displayGroup"},"timeout":"5s"}}
{
"took": 4,
"timed_out": false,
"_shards": {
"total": 1,
"successful": 1,
"skipped": 0,
"failed": 0
},
"hits": {
"total": {
"value": 450,
"relation": "eq"
},
"max_score": null,
"hits": [
{
"_index": "staging-67_product_1776930924",
"_id": "5da4804466dd26cb4cced2f97fdb224c",
"_score": 1100.0,
"_source": {
"id": "5da4804466dd26cb4cced2f97fdb224c",
"autoIncrement": 115153.0
},
"fields": {
"displayGroup": [
"04f8d6081d295e496edd4ec406c0bf41"
]
},
"sort": [
0,
1100.0,
0,
115153,
"5da4804466dd26cb4cced2f97fdb224c"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "fece20b5b914b3c5ba3e2d81f3667175",
"_score": 1100.0,
"_source": {
"id": "fece20b5b914b3c5ba3e2d81f3667175",
"autoIncrement": 115152.0
},
"fields": {
"displayGroup": [
"cc762275a1c32340df5d38b73554affb"
]
},
"sort": [
0,
1100.0,
0,
115152,
"fece20b5b914b3c5ba3e2d81f3667175"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "6e63d8d573da51d756ae68e77491506d",
"_score": 1100.0,
"_source": {
"id": "6e63d8d573da51d756ae68e77491506d",
"autoIncrement": 115151.0
},
"fields": {
"displayGroup": [
"85337416d359f2f325ef82ecbdfe87c3"
]
},
"sort": [
0,
1100.0,
0,
115151,
"6e63d8d573da51d756ae68e77491506d"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "19ac84cb8314f9f45a5d7162b66f3f0c",
"_score": 1100.0,
"_source": {
"id": "19ac84cb8314f9f45a5d7162b66f3f0c",
"autoIncrement": 115150.0
},
"fields": {
"displayGroup": [
"64f6026ca68c19b2b86e6181a5c83994"
]
},
"sort": [
0,
1100.0,
0,
115150,
"19ac84cb8314f9f45a5d7162b66f3f0c"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "7e62276777e32a344e1305a870bd9bdd",
"_score": 1100.0,
"_source": {
"id": "7e62276777e32a344e1305a870bd9bdd",
"autoIncrement": 115149.0
},
"fields": {
"displayGroup": [
"c56356eaa69f57e7a91d4346d24c5dc4"
]
},
"sort": [
0,
1100.0,
0,
115149,
"7e62276777e32a344e1305a870bd9bdd"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "bde06e8aa342dd69875deabdfc669dd1",
"_score": 1100.0,
"_source": {
"id": "bde06e8aa342dd69875deabdfc669dd1",
"autoIncrement": 115148.0
},
"fields": {
"displayGroup": [
"a5415ac6599868d9a26ff151e6e9fd2f"
]
},
"sort": [
0,
1100.0,
0,
115148,
"bde06e8aa342dd69875deabdfc669dd1"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "aae3187ae8f28298106539217fe2c2a7",
"_score": 1100.0,
"_source": {
"id": "aae3187ae8f28298106539217fe2c2a7",
"autoIncrement": 115147.0
},
"fields": {
"displayGroup": [
"295d8453c28a4de96596b3271362d1bc"
]
},
"sort": [
0,
1100.0,
0,
115147,
"aae3187ae8f28298106539217fe2c2a7"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "927c40faa1a78d4d294a2d066c0d4bdc",
"_score": 1100.0,
"_source": {
"id": "927c40faa1a78d4d294a2d066c0d4bdc",
"autoIncrement": 115146.0
},
"fields": {
"displayGroup": [
"ee59a415ee5e6b54db051bac38919044"
]
},
"sort": [
0,
1100.0,
0,
115146,
"927c40faa1a78d4d294a2d066c0d4bdc"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "05e974f4452d83cb5aa81b56c84ae8f5",
"_score": 1100.0,
"_source": {
"id": "05e974f4452d83cb5aa81b56c84ae8f5",
"autoIncrement": 115145.0
},
"fields": {
"displayGroup": [
"543f60301ab2ef3fc9ccc4d37c0faae5"
]
},
"sort": [
0,
1100.0,
0,
115145,
"05e974f4452d83cb5aa81b56c84ae8f5"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "c1efa5802a5700f386ba763be0ec8761",
"_score": 1100.0,
"_source": {
"id": "c1efa5802a5700f386ba763be0ec8761",
"autoIncrement": 115144.0
},
"fields": {
"displayGroup": [
"73c3834c6516b534e71628e5b1213cc8"
]
},
"sort": [
0,
1100.0,
0,
115144,
"c1efa5802a5700f386ba763be0ec8761"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "b277839dcc470cf21213d2ce0a1212f6",
"_score": 1100.0,
"_source": {
"id": "b277839dcc470cf21213d2ce0a1212f6",
"autoIncrement": 115143.0
},
"fields": {
"displayGroup": [
"2a199dd751a3fa6a4ec122f2e8ca7379"
]
},
"sort": [
0,
1100.0,
0,
115143,
"b277839dcc470cf21213d2ce0a1212f6"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "9860200e3122c09dbe7b2edcb8f3b1c8",
"_score": 1100.0,
"_source": {
"id": "9860200e3122c09dbe7b2edcb8f3b1c8",
"autoIncrement": 115142.0
},
"fields": {
"displayGroup": [
"e476992ea65e852ca2afc2359fc949ce"
]
},
"sort": [
0,
1100.0,
0,
115142,
"9860200e3122c09dbe7b2edcb8f3b1c8"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "0e8553ed3b6e9ac0c7514779f3af49a5",
"_score": 1100.0,
"_source": {
"id": "0e8553ed3b6e9ac0c7514779f3af49a5",
"autoIncrement": 115141.0
},
"fields": {
"displayGroup": [
"ae9b383bb337d1c5974eb2c859dda930"
]
},
"sort": [
0,
1100.0,
0,
115141,
"0e8553ed3b6e9ac0c7514779f3af49a5"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "32824d231ff27cba5c7c5bf9fe296f45",
"_score": 1100.0,
"_source": {
"id": "32824d231ff27cba5c7c5bf9fe296f45",
"autoIncrement": 115140.0
},
"fields": {
"displayGroup": [
"aea97f5a05dfe3c14c045edadbe341be"
]
},
"sort": [
0,
1100.0,
0,
115140,
"32824d231ff27cba5c7c5bf9fe296f45"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "2aa144d57f4fde2c65c6622175e984bc",
"_score": 1100.0,
"_source": {
"id": "2aa144d57f4fde2c65c6622175e984bc",
"autoIncrement": 115139.0
},
"fields": {
"displayGroup": [
"7caf0ff74d2dd9980c69d2990f96b976"
]
},
"sort": [
0,
1100.0,
0,
115139,
"2aa144d57f4fde2c65c6622175e984bc"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "fb58de981f0672b02555ec9f36e412bb",
"_score": 1100.0,
"_source": {
"id": "fb58de981f0672b02555ec9f36e412bb",
"autoIncrement": 115138.0
},
"fields": {
"displayGroup": [
"df66ccb79e41860bca8cb2d2a8e8dd09"
]
},
"sort": [
0,
1100.0,
0,
115138,
"fb58de981f0672b02555ec9f36e412bb"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "0098712c60760de24708ffda1f74673d",
"_score": 1100.0,
"_source": {
"id": "0098712c60760de24708ffda1f74673d",
"autoIncrement": 115137.0
},
"fields": {
"displayGroup": [
"200963745c521b8961465dc0b92bd170"
]
},
"sort": [
0,
1100.0,
0,
115137,
"0098712c60760de24708ffda1f74673d"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "87f4060c14f3e2681c09547714f32554",
"_score": 1100.0,
"_source": {
"id": "87f4060c14f3e2681c09547714f32554",
"autoIncrement": 115136.0
},
"fields": {
"displayGroup": [
"e4f36a24f85b3deb5ba53ba9a274e9ab"
]
},
"sort": [
0,
1100.0,
0,
115136,
"87f4060c14f3e2681c09547714f32554"
]
}
]
},
"aggregations": {
"total-count": {
"value": 450
}
}
}
Shopware\Elasticsearch\Framework\DataAbstractionLayer\ElasticsearchEntitySearcher:search
|
| 2 |
6.85 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":"6bea64103f3985500f32c4f72e408bdc"}},{"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"}}}},"multi-width":{"composite":{"sources":[{"multi-width.sorting":{"terms":{"field":"width","order":"ASC"}}},{"multi-width.key":{"terms":{"field":"width"}}}],"size":"99999"}},"multi-height":{"composite":{"sources":[{"multi-height.sorting":{"terms":{"field":"height","order":"ASC"}}},{"multi-height.key":{"terms":{"field":"height"}}}],"size":"99999"}},"multi-tiefe":{"composite":{"sources":[{"multi-tiefe.sorting":{"terms":{"field":"attribute_tiefe","order":"ASC"}}},{"multi-tiefe.key":{"terms":{"field":"attribute_tiefe"}}}],"size":"99999"}},"manufacturer":{"terms":{"field":"manufacturerId","size":10000}},"multi-regalausfuehrung":{"composite":{"sources":[{"multi-regalausfuehrung.sorting":{"terms":{"field":"attribute_regalausfuehrung","order":"ASC"}}},{"multi-regalausfuehrung.key":{"terms":{"field":"attribute_regalausfuehrung"}}}],"size":"99999"}},"multi-anzahlFachboeden":{"composite":{"sources":[{"multi-anzahlFachboeden.sorting":{"terms":{"field":"attribute_anzahlFachboeden","order":"ASC"}}},{"multi-anzahlFachboeden.key":{"terms":{"field":"attribute_anzahlFachboeden"}}}],"size":"99999"}},"multi-fachlast":{"composite":{"sources":[{"multi-fachlast.sorting":{"terms":{"field":"attribute_fachlast","order":"ASC"}}},{"multi-fachlast.key":{"terms":{"field":"attribute_fachlast"}}}],"size":"99999"}},"multi-ausfuehrungBoden":{"composite":{"sources":[{"multi-ausfuehrungBoden.sorting":{"terms":{"field":"attribute_ausfuehrungBoden","order":"ASC"}}},{"multi-ausfuehrungBoden.key":{"terms":{"field":"attribute_ausfuehrungBoden"}}}],"size":"99999"}},"multi-farbeRahmen":{"composite":{"sources":[{"multi-farbeRahmen.sorting":{"terms":{"field":"attribute_farbeRahmen","order":"ASC"}}},{"multi-farbeRahmen.key":{"terms":{"field":"attribute_farbeRahmen"}}}],"size":"99999"}},"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": "6bea64103f3985500f32c4f72e408bdc"
}
},
{
"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"
}
}
}
},
"multi-width": {
"composite": {
"sources": [
{
"multi-width.sorting": {
"terms": {
"field": "width",
"order": "ASC"
}
}
},
{
"multi-width.key": {
"terms": {
"field": "width"
}
}
}
],
"size": "99999"
}
},
"multi-height": {
"composite": {
"sources": [
{
"multi-height.sorting": {
"terms": {
"field": "height",
"order": "ASC"
}
}
},
{
"multi-height.key": {
"terms": {
"field": "height"
}
}
}
],
"size": "99999"
}
},
"multi-tiefe": {
"composite": {
"sources": [
{
"multi-tiefe.sorting": {
"terms": {
"field": "attribute_tiefe",
"order": "ASC"
}
}
},
{
"multi-tiefe.key": {
"terms": {
"field": "attribute_tiefe"
}
}
}
],
"size": "99999"
}
},
"manufacturer": {
"terms": {
"field": "manufacturerId",
"size": 10000
}
},
"multi-regalausfuehrung": {
"composite": {
"sources": [
{
"multi-regalausfuehrung.sorting": {
"terms": {
"field": "attribute_regalausfuehrung",
"order": "ASC"
}
}
},
{
"multi-regalausfuehrung.key": {
"terms": {
"field": "attribute_regalausfuehrung"
}
}
}
],
"size": "99999"
}
},
"multi-anzahlFachboeden": {
"composite": {
"sources": [
{
"multi-anzahlFachboeden.sorting": {
"terms": {
"field": "attribute_anzahlFachboeden",
"order": "ASC"
}
}
},
{
"multi-anzahlFachboeden.key": {
"terms": {
"field": "attribute_anzahlFachboeden"
}
}
}
],
"size": "99999"
}
},
"multi-fachlast": {
"composite": {
"sources": [
{
"multi-fachlast.sorting": {
"terms": {
"field": "attribute_fachlast",
"order": "ASC"
}
}
},
{
"multi-fachlast.key": {
"terms": {
"field": "attribute_fachlast"
}
}
}
],
"size": "99999"
}
},
"multi-ausfuehrungBoden": {
"composite": {
"sources": [
{
"multi-ausfuehrungBoden.sorting": {
"terms": {
"field": "attribute_ausfuehrungBoden",
"order": "ASC"
}
}
},
{
"multi-ausfuehrungBoden.key": {
"terms": {
"field": "attribute_ausfuehrungBoden"
}
}
}
],
"size": "99999"
}
},
"multi-farbeRahmen": {
"composite": {
"sources": [
{
"multi-farbeRahmen.sorting": {
"terms": {
"field": "attribute_farbeRahmen",
"order": "ASC"
}
}
},
{
"multi-farbeRahmen.key": {
"terms": {
"field": "attribute_farbeRahmen"
}
}
}
],
"size": "99999"
}
},
"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": 450,
"min": 101.0,
"max": 774.0,
"avg": 310.9822222222222,
"sum": 139942.0
},
"rating-exists": {
"doc_count": 450,
"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": "80a4c612e0000b55478bc9962efd4845",
"manufacturer-count-filter.key": "80a4c612e0000b55478bc9962efd4845"
},
"buckets": [
{
"key": {
"manufacturer-count-filter.sorting": "6702a27cc2ed074813e1d59f22465957",
"manufacturer-count-filter.key": "6702a27cc2ed074813e1d59f22465957"
},
"doc_count": 108
},
{
"key": {
"manufacturer-count-filter.sorting": "80a4c612e0000b55478bc9962efd4845",
"manufacturer-count-filter.key": "80a4c612e0000b55478bc9962efd4845"
},
"doc_count": 190
}
]
},
"bool-reduced": {
"doc_count": 0,
"bool-reduced": {
"value": 0
}
},
"multi-width": {
"after_key": {
"multi-width.sorting": 5140.0,
"multi-width.key": 5140.0
},
"buckets": [
{
"key": {
"multi-width.sorting": 750.0,
"multi-width.key": 750.0
},
"doc_count": 54
},
{
"key": {
"multi-width.sorting": 875.0,
"multi-width.key": 875.0
},
"doc_count": 56
},
{
"key": {
"multi-width.sorting": 960.0,
"multi-width.key": 960.0
},
"doc_count": 54
},
{
"key": {
"multi-width.sorting": 1000.0,
"multi-width.key": 1000.0
},
"doc_count": 64
},
{
"key": {
"multi-width.sorting": 1005.0,
"multi-width.key": 1005.0
},
"doc_count": 72
},
{
"key": {
"multi-width.sorting": 1010.0,
"multi-width.key": 1010.0
},
"doc_count": 12
},
{
"key": {
"multi-width.sorting": 1250.0,
"multi-width.key": 1250.0
},
"doc_count": 32
},
{
"key": {
"multi-width.sorting": 1260.0,
"multi-width.key": 1260.0
},
"doc_count": 12
},
{
"key": {
"multi-width.sorting": 1285.0,
"multi-width.key": 1285.0
},
"doc_count": 56
},
{
"key": {
"multi-width.sorting": 1500.0,
"multi-width.key": 1500.0
},
"doc_count": 32
},
{
"key": {
"multi-width.sorting": 2010.0,
"multi-width.key": 2010.0
},
"doc_count": 1
},
{
"key": {
"multi-width.sorting": 2570.0,
"multi-width.key": 2570.0
},
"doc_count": 1
},
{
"key": {
"multi-width.sorting": 3015.0,
"multi-width.key": 3015.0
},
"doc_count": 1
},
{
"key": {
"multi-width.sorting": 3855.0,
"multi-width.key": 3855.0
},
"doc_count": 1
},
{
"key": {
"multi-width.sorting": 4020.0,
"multi-width.key": 4020.0
},
"doc_count": 1
},
{
"key": {
"multi-width.sorting": 5140.0,
"multi-width.key": 5140.0
},
"doc_count": 1
}
]
},
"multi-height": {
"after_key": {
"multi-height.sorting": 2750.0,
"multi-height.key": 2750.0
},
"buckets": [
{
"key": {
"multi-height.sorting": 1900.0,
"multi-height.key": 1900.0
},
"doc_count": 36
},
{
"key": {
"multi-height.sorting": 2000.0,
"multi-height.key": 2000.0
},
"doc_count": 119
},
{
"key": {
"multi-height.sorting": 2075.0,
"multi-height.key": 2075.0
},
"doc_count": 35
},
{
"key": {
"multi-height.sorting": 2250.0,
"multi-height.key": 2250.0
},
"doc_count": 68
},
{
"key": {
"multi-height.sorting": 2325.0,
"multi-height.key": 2325.0
},
"doc_count": 60
},
{
"key": {
"multi-height.sorting": 2500.0,
"multi-height.key": 2500.0
},
"doc_count": 64
},
{
"key": {
"multi-height.sorting": 2600.0,
"multi-height.key": 2600.0
},
"doc_count": 36
},
{
"key": {
"multi-height.sorting": 2750.0,
"multi-height.key": 2750.0
},
"doc_count": 32
}
]
},
"multi-tiefe": {
"after_key": {
"multi-tiefe.sorting": 1000.0,
"multi-tiefe.key": 1000.0
},
"buckets": [
{
"key": {
"multi-tiefe.sorting": 300.0,
"multi-tiefe.key": 300.0
},
"doc_count": 166
},
{
"key": {
"multi-tiefe.sorting": 400.0,
"multi-tiefe.key": 400.0
},
"doc_count": 68
},
{
"key": {
"multi-tiefe.sorting": 500.0,
"multi-tiefe.key": 500.0
},
"doc_count": 32
},
{
"key": {
"multi-tiefe.sorting": 600.0,
"multi-tiefe.key": 600.0
},
"doc_count": 167
},
{
"key": {
"multi-tiefe.sorting": 626.0,
"multi-tiefe.key": 626.0
},
"doc_count": 1
},
{
"key": {
"multi-tiefe.sorting": 800.0,
"multi-tiefe.key": 800.0
},
"doc_count": 8
},
{
"key": {
"multi-tiefe.sorting": 1000.0,
"multi-tiefe.key": 1000.0
},
"doc_count": 8
}
]
},
"manufacturer": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"key": "80a4c612e0000b55478bc9962efd4845",
"doc_count": 190
},
{
"key": "6702a27cc2ed074813e1d59f22465957",
"doc_count": 108
}
]
},
"multi-regalausfuehrung": {
"after_key": {
"multi-regalausfuehrung.sorting": "Set",
"multi-regalausfuehrung.key": "Set"
},
"buckets": [
{
"key": {
"multi-regalausfuehrung.sorting": "Anbaufeld",
"multi-regalausfuehrung.key": "Anbaufeld"
},
"doc_count": 146
},
{
"key": {
"multi-regalausfuehrung.sorting": "Grundfeld",
"multi-regalausfuehrung.key": "Grundfeld"
},
"doc_count": 146
},
{
"key": {
"multi-regalausfuehrung.sorting": "Set",
"multi-regalausfuehrung.key": "Set"
},
"doc_count": 6
}
]
},
"multi-anzahlFachboeden": {
"after_key": {
"multi-anzahlFachboeden.sorting": "8 St\u00fcck",
"multi-anzahlFachboeden.key": "8 St\u00fcck"
},
"buckets": [
{
"key": {
"multi-anzahlFachboeden.sorting": "2 St\u00fcck",
"multi-anzahlFachboeden.key": "2 St\u00fcck"
},
"doc_count": 36
},
{
"key": {
"multi-anzahlFachboeden.sorting": "5 St\u00fcck",
"multi-anzahlFachboeden.key": "5 St\u00fcck"
},
"doc_count": 12
},
{
"key": {
"multi-anzahlFachboeden.sorting": "6 St\u00fcck",
"multi-anzahlFachboeden.key": "6 St\u00fcck"
},
"doc_count": 121
},
{
"key": {
"multi-anzahlFachboeden.sorting": "7 St\u00fcck",
"multi-anzahlFachboeden.key": "7 St\u00fcck"
},
"doc_count": 105
},
{
"key": {
"multi-anzahlFachboeden.sorting": "8 St\u00fcck",
"multi-anzahlFachboeden.key": "8 St\u00fcck"
},
"doc_count": 24
}
]
},
"multi-fachlast": {
"after_key": {
"multi-fachlast.sorting": "80 kg",
"multi-fachlast.key": "80 kg"
},
"buckets": [
{
"key": {
"multi-fachlast.sorting": "150 kg",
"multi-fachlast.key": "150 kg"
},
"doc_count": 51
},
{
"key": {
"multi-fachlast.sorting": "250 kg",
"multi-fachlast.key": "250 kg"
},
"doc_count": 67
},
{
"key": {
"multi-fachlast.sorting": "60 kg",
"multi-fachlast.key": "60 kg"
},
"doc_count": 48
},
{
"key": {
"multi-fachlast.sorting": "80 kg",
"multi-fachlast.key": "80 kg"
},
"doc_count": 96
}
]
},
"multi-ausfuehrungBoden": {
"after_key": {
"multi-ausfuehrungBoden.sorting": "Stahl",
"multi-ausfuehrungBoden.key": "Stahl"
},
"buckets": [
{
"key": {
"multi-ausfuehrungBoden.sorting": "Spanplatte",
"multi-ausfuehrungBoden.key": "Spanplatte"
},
"doc_count": 67
},
{
"key": {
"multi-ausfuehrungBoden.sorting": "Stahl",
"multi-ausfuehrungBoden.key": "Stahl"
},
"doc_count": 231
}
]
},
"multi-farbeRahmen": {
"after_key": {
"multi-farbeRahmen.sorting": "verzinkt",
"multi-farbeRahmen.key": "verzinkt"
},
"buckets": [
{
"key": {
"multi-farbeRahmen.sorting": "RAL 7035 lichtgrau",
"multi-farbeRahmen.key": "RAL 7035 lichtgrau"
},
"doc_count": 108
},
{
"key": {
"multi-farbeRahmen.sorting": "verzinkt",
"multi-farbeRahmen.key": "verzinkt"
},
"doc_count": 190
}
]
},
"manufacturer-count": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"key": "80a4c612e0000b55478bc9962efd4845",
"doc_count": 190
},
{
"key": "6702a27cc2ed074813e1d59f22465957",
"doc_count": 108
}
]
}
}
}
Shopware\Elasticsearch\Framework\DataAbstractionLayer\ElasticsearchEntityAggregator:aggregate
|