| 1 |
16.60 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":"6221ab7b748541647f9e56607d8b3b5a"}},{"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":24,"size":24,"collapse":{"field":"displayGroup"},"timeout":"5s"}}
{
"took": 3,
"timed_out": false,
"_shards": {
"total": 1,
"successful": 1,
"skipped": 0,
"failed": 0
},
"hits": {
"total": {
"value": 92,
"relation": "eq"
},
"max_score": null,
"hits": [
{
"_index": "staging-67_product_1776930924",
"_id": "fbd06acfff0c3b99577afe9be9c7060b",
"_score": 1100.0,
"_source": {
"id": "fbd06acfff0c3b99577afe9be9c7060b",
"autoIncrement": 62535.0
},
"fields": {
"displayGroup": [
"e4317a691c59fbcd6d7cf543791e4ad4"
]
},
"sort": [
0,
1100.0,
0,
62535,
"fbd06acfff0c3b99577afe9be9c7060b"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "52ee8950902c1f1c5455c66dc6b1b8d8",
"_score": 1100.0,
"_source": {
"id": "52ee8950902c1f1c5455c66dc6b1b8d8",
"autoIncrement": 62534.0
},
"fields": {
"displayGroup": [
"803ca79b772e5f2777c55ca070b897c0"
]
},
"sort": [
0,
1100.0,
0,
62534,
"52ee8950902c1f1c5455c66dc6b1b8d8"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "7b08b9ecf34b1ea64c898328b579e765",
"_score": 1100.0,
"_source": {
"id": "7b08b9ecf34b1ea64c898328b579e765",
"autoIncrement": 62506.0
},
"fields": {
"displayGroup": [
"af821a170cf6ed7557cb8dbbbf713173"
]
},
"sort": [
0,
1100.0,
0,
62506,
"7b08b9ecf34b1ea64c898328b579e765"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "b3a85da262ab3a95c967b35c66dfd051",
"_score": 1100.0,
"_source": {
"id": "b3a85da262ab3a95c967b35c66dfd051",
"autoIncrement": 62505.0
},
"fields": {
"displayGroup": [
"35e31e6e7f7a62c98f4a053cd7dc6f0c"
]
},
"sort": [
0,
1100.0,
0,
62505,
"b3a85da262ab3a95c967b35c66dfd051"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "6d9a97410c449b564c18bcfcf5d669d2",
"_score": 1100.0,
"_source": {
"id": "6d9a97410c449b564c18bcfcf5d669d2",
"autoIncrement": 62503.0
},
"fields": {
"displayGroup": [
"d2ec43d17f6143688a2273ce14532a0e"
]
},
"sort": [
0,
1100.0,
0,
62503,
"6d9a97410c449b564c18bcfcf5d669d2"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "c76616991c88051723c5e2f9c3b0d723",
"_score": 1100.0,
"_source": {
"id": "c76616991c88051723c5e2f9c3b0d723",
"autoIncrement": 62502.0
},
"fields": {
"displayGroup": [
"74b5d7ef9454944a7e93e6eb1b0fe4a8"
]
},
"sort": [
0,
1100.0,
0,
62502,
"c76616991c88051723c5e2f9c3b0d723"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "3ec329e98e1a9dcfa16c6e5f20a4187a",
"_score": 1100.0,
"_source": {
"id": "3ec329e98e1a9dcfa16c6e5f20a4187a",
"autoIncrement": 62501.0
},
"fields": {
"displayGroup": [
"a153cbd14d370dc960da81102c5ac0f7"
]
},
"sort": [
0,
1100.0,
0,
62501,
"3ec329e98e1a9dcfa16c6e5f20a4187a"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "89461b7d69ff5f4ffdb6c14db4e8419d",
"_score": 1100.0,
"_source": {
"id": "89461b7d69ff5f4ffdb6c14db4e8419d",
"autoIncrement": 62500.0
},
"fields": {
"displayGroup": [
"d38a4bda000595ca3c1940bc0ff733f7"
]
},
"sort": [
0,
1100.0,
0,
62500,
"89461b7d69ff5f4ffdb6c14db4e8419d"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "0ef452275f3d13c307d05b067f812cd8",
"_score": 1100.0,
"_source": {
"id": "0ef452275f3d13c307d05b067f812cd8",
"autoIncrement": 62498.0
},
"fields": {
"displayGroup": [
"80618ec2dad995dabf02fcb6404d9b41"
]
},
"sort": [
0,
1100.0,
0,
62498,
"0ef452275f3d13c307d05b067f812cd8"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "ebde19c7795c014edaa3415150bb8bc8",
"_score": 1100.0,
"_source": {
"id": "ebde19c7795c014edaa3415150bb8bc8",
"autoIncrement": 62497.0
},
"fields": {
"displayGroup": [
"7714f4b0985a5f1a55816ed05cc59d7a"
]
},
"sort": [
0,
1100.0,
0,
62497,
"ebde19c7795c014edaa3415150bb8bc8"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "7c1c22d2a9e6bef782d570be4f1c2d5e",
"_score": 1100.0,
"_source": {
"id": "7c1c22d2a9e6bef782d570be4f1c2d5e",
"autoIncrement": 62399.0
},
"fields": {
"displayGroup": [
"40bc61ab0e41bb828affc1ac30333a40"
]
},
"sort": [
0,
1100.0,
0,
62399,
"7c1c22d2a9e6bef782d570be4f1c2d5e"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "07d08eda68bf1d6ae11e8a99f2ce699d",
"_score": 1100.0,
"_source": {
"id": "07d08eda68bf1d6ae11e8a99f2ce699d",
"autoIncrement": 62398.0
},
"fields": {
"displayGroup": [
"174bacddb8342df31667a0655a4c789f"
]
},
"sort": [
0,
1100.0,
0,
62398,
"07d08eda68bf1d6ae11e8a99f2ce699d"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "ffa82ff5cb0dd7c2f2d5bb8248e0b2ae",
"_score": 1100.0,
"_source": {
"id": "ffa82ff5cb0dd7c2f2d5bb8248e0b2ae",
"autoIncrement": 62397.0
},
"fields": {
"displayGroup": [
"da8533b2a04bd8434c4dcd1cef49e62e"
]
},
"sort": [
0,
1100.0,
0,
62397,
"ffa82ff5cb0dd7c2f2d5bb8248e0b2ae"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "1b6f5a4c52d3d256453bf93bcb68847d",
"_score": 1100.0,
"_source": {
"id": "1b6f5a4c52d3d256453bf93bcb68847d",
"autoIncrement": 62396.0
},
"fields": {
"displayGroup": [
"fd80d373c7e5d082c55eb419d5761f17"
]
},
"sort": [
0,
1100.0,
0,
62396,
"1b6f5a4c52d3d256453bf93bcb68847d"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "a1b4aed07a6a0b262cf75c99eda68be9",
"_score": 1100.0,
"_source": {
"id": "a1b4aed07a6a0b262cf75c99eda68be9",
"autoIncrement": 62395.0
},
"fields": {
"displayGroup": [
"9e56db4ffe89860dfa7582350f9ec345"
]
},
"sort": [
0,
1100.0,
0,
62395,
"a1b4aed07a6a0b262cf75c99eda68be9"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "838f57887005f3624c9a0d35f020c7a5",
"_score": 1100.0,
"_source": {
"id": "838f57887005f3624c9a0d35f020c7a5",
"autoIncrement": 62393.0
},
"fields": {
"displayGroup": [
"beeb607b3805ee890af7c608a040dcb4"
]
},
"sort": [
0,
1100.0,
0,
62393,
"838f57887005f3624c9a0d35f020c7a5"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "53d80b22ea91eb04bdf5173d0c4e631e",
"_score": 1100.0,
"_source": {
"id": "53d80b22ea91eb04bdf5173d0c4e631e",
"autoIncrement": 62392.0
},
"fields": {
"displayGroup": [
"5ca2717847e352a484089f83a34f76f0"
]
},
"sort": [
0,
1100.0,
0,
62392,
"53d80b22ea91eb04bdf5173d0c4e631e"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "906c7394a5826825d8ef09c653d0c207",
"_score": 1100.0,
"_source": {
"id": "906c7394a5826825d8ef09c653d0c207",
"autoIncrement": 62391.0
},
"fields": {
"displayGroup": [
"b1fa0737d9405f0a44af9d3f2e2f5d9a"
]
},
"sort": [
0,
1100.0,
0,
62391,
"906c7394a5826825d8ef09c653d0c207"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "996ec967f53b1ca185e2b445ff9075ad",
"_score": 1100.0,
"_source": {
"id": "996ec967f53b1ca185e2b445ff9075ad",
"autoIncrement": 41875.0
},
"fields": {
"displayGroup": [
"d8d7203b10c957a5178ef316ed37bddf"
]
},
"sort": [
0,
1100.0,
0,
41875,
"996ec967f53b1ca185e2b445ff9075ad"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "d396e708c585349bc4fc8a3bc7dbb339",
"_score": 1100.0,
"_source": {
"id": "d396e708c585349bc4fc8a3bc7dbb339",
"autoIncrement": 41874.0
},
"fields": {
"displayGroup": [
"cfef6acad9d15012a73114154a0c9a78"
]
},
"sort": [
0,
1100.0,
0,
41874,
"d396e708c585349bc4fc8a3bc7dbb339"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "a2656cc30d7297dd35b100c7a9b4b171",
"_score": 1100.0,
"_source": {
"id": "a2656cc30d7297dd35b100c7a9b4b171",
"autoIncrement": 41728.0
},
"fields": {
"displayGroup": [
"c91acddb86c60ad7813f070187509750"
]
},
"sort": [
0,
1100.0,
0,
41728,
"a2656cc30d7297dd35b100c7a9b4b171"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "78b0f03bae3942ea5b6a29ecc5b4815f",
"_score": 1100.0,
"_source": {
"id": "78b0f03bae3942ea5b6a29ecc5b4815f",
"autoIncrement": 41727.0
},
"fields": {
"displayGroup": [
"29cec9ad1d308f27b04040089df4b1fc"
]
},
"sort": [
0,
1100.0,
0,
41727,
"78b0f03bae3942ea5b6a29ecc5b4815f"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "473ffbc164bd04487127332855c5ff2d",
"_score": 1100.0,
"_source": {
"id": "473ffbc164bd04487127332855c5ff2d",
"autoIncrement": 41726.0
},
"fields": {
"displayGroup": [
"1beae5e105471dca291d2c9a48086976"
]
},
"sort": [
0,
1100.0,
0,
41726,
"473ffbc164bd04487127332855c5ff2d"
]
},
{
"_index": "staging-67_product_1776930924",
"_id": "f1b2004f82235303db7aaef01f146c79",
"_score": 1100.0,
"_source": {
"id": "f1b2004f82235303db7aaef01f146c79",
"autoIncrement": 16720.0
},
"fields": {
"displayGroup": [
"5e3cecd40759a05ef70afdba96268f9f"
]
},
"sort": [
0,
1100.0,
0,
16720,
"f1b2004f82235303db7aaef01f146c79"
]
}
]
},
"aggregations": {
"total-count": {
"value": 92
}
}
}
Shopware\Elasticsearch\Framework\DataAbstractionLayer\ElasticsearchEntitySearcher:search
|
| 2 |
6.16 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":"6221ab7b748541647f9e56607d8b3b5a"}},{"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-eisKatalogUrl":{"composite":{"sources":[{"multi-eisKatalogUrl.sorting":{"terms":{"field":"attribute_eisKatalogUrl","order":"ASC"}}},{"multi-eisKatalogUrl.key":{"terms":{"field":"attribute_eisKatalogUrl"}}}],"size":"99999"}},"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-radabstand":{"composite":{"sources":[{"multi-radabstand.sorting":{"terms":{"field":"attribute_radabstand","order":"ASC"}}},{"multi-radabstand.key":{"terms":{"field":"attribute_radabstand"}}}],"size":"99999"}},"range-anzahlFahrradaufnahmen":{"stats":{"field":"attribute_anzahlFahrradaufnahmen"}},"multi-befestigungsart":{"composite":{"sources":[{"multi-befestigungsart.sorting":{"terms":{"field":"attribute_befestigungsart","order":"ASC"}}},{"multi-befestigungsart.key":{"terms":{"field":"attribute_befestigungsart"}}}],"size":"99999"}},"multi-material":{"composite":{"sources":[{"multi-material.sorting":{"terms":{"field":"attribute_material","order":"ASC"}}},{"multi-material.key":{"terms":{"field":"attribute_material"}}}],"size":"99999"}},"multi-aufnahmekapazitaet":{"composite":{"sources":[{"multi-aufnahmekapazitaet.sorting":{"terms":{"field":"attribute_aufnahmekapazitaet","order":"ASC"}}},{"multi-aufnahmekapazitaet.key":{"terms":{"field":"attribute_aufnahmekapazitaet"}}}],"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": "6221ab7b748541647f9e56607d8b3b5a"
}
},
{
"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-eisKatalogUrl": {
"composite": {
"sources": [
{
"multi-eisKatalogUrl.sorting": {
"terms": {
"field": "attribute_eisKatalogUrl",
"order": "ASC"
}
}
},
{
"multi-eisKatalogUrl.key": {
"terms": {
"field": "attribute_eisKatalogUrl"
}
}
}
],
"size": "99999"
}
},
"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-radabstand": {
"composite": {
"sources": [
{
"multi-radabstand.sorting": {
"terms": {
"field": "attribute_radabstand",
"order": "ASC"
}
}
},
{
"multi-radabstand.key": {
"terms": {
"field": "attribute_radabstand"
}
}
}
],
"size": "99999"
}
},
"range-anzahlFahrradaufnahmen": {
"stats": {
"field": "attribute_anzahlFahrradaufnahmen"
}
},
"multi-befestigungsart": {
"composite": {
"sources": [
{
"multi-befestigungsart.sorting": {
"terms": {
"field": "attribute_befestigungsart",
"order": "ASC"
}
}
},
{
"multi-befestigungsart.key": {
"terms": {
"field": "attribute_befestigungsart"
}
}
}
],
"size": "99999"
}
},
"multi-material": {
"composite": {
"sources": [
{
"multi-material.sorting": {
"terms": {
"field": "attribute_material",
"order": "ASC"
}
}
},
{
"multi-material.key": {
"terms": {
"field": "attribute_material"
}
}
}
],
"size": "99999"
}
},
"multi-aufnahmekapazitaet": {
"composite": {
"sources": [
{
"multi-aufnahmekapazitaet.sorting": {
"terms": {
"field": "attribute_aufnahmekapazitaet",
"order": "ASC"
}
}
},
{
"multi-aufnahmekapazitaet.key": {
"terms": {
"field": "attribute_aufnahmekapazitaet"
}
}
}
],
"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": 92,
"min": 134.0,
"max": 3282.0,
"avg": 783.4565217391304,
"sum": 72078.0
},
"rating-exists": {
"doc_count": 92,
"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": "b78b8d20378fdbc290b526035638758b",
"manufacturer-count-filter.key": "b78b8d20378fdbc290b526035638758b"
},
"buckets": [
{
"key": {
"manufacturer-count-filter.sorting": "18e6b17f5ea12a9dfb6ca9b1feb4755c",
"manufacturer-count-filter.key": "18e6b17f5ea12a9dfb6ca9b1feb4755c"
},
"doc_count": 19
},
{
"key": {
"manufacturer-count-filter.sorting": "30c14f48bd293b931d30341933d7d048",
"manufacturer-count-filter.key": "30c14f48bd293b931d30341933d7d048"
},
"doc_count": 28
},
{
"key": {
"manufacturer-count-filter.sorting": "b78b8d20378fdbc290b526035638758b",
"manufacturer-count-filter.key": "b78b8d20378fdbc290b526035638758b"
},
"doc_count": 29
}
]
},
"bool-reduced": {
"doc_count": 3,
"bool-reduced": {
"value": 3
}
},
"width": {
"count": 84,
"min": 450.0,
"max": 2000.0,
"avg": 1789.0833333333333,
"sum": 150283.0
},
"width-stats": {
"doc_count": 84,
"width-stats": {
"count": 84,
"min": 450.0,
"max": 2000.0,
"avg": 1789.0833333333333,
"sum": 150283.0
}
},
"height": {
"count": 63,
"min": 420.0,
"max": 874.0,
"avg": 687.7619047619048,
"sum": 43329.0
},
"height-stats": {
"doc_count": 63,
"height-stats": {
"count": 63,
"min": 420.0,
"max": 874.0,
"avg": 687.7619047619048,
"sum": 43329.0
}
},
"tiefe": {
"count": 11,
"min": 340.0,
"max": 1770.0,
"avg": 566.3636363636364,
"sum": 6230.0
},
"multi-eisKatalogUrl": {
"after_key": {
"multi-eisKatalogUrl.sorting": "https:\/\/oxomi.com\/p\/1534781\/catalog\/10642456?page=987",
"multi-eisKatalogUrl.key": "https:\/\/oxomi.com\/p\/1534781\/catalog\/10642456?page=987"
},
"buckets": [
{
"key": {
"multi-eisKatalogUrl.sorting": "https:\/\/oxomi.com\/p\/1534781\/catalog\/10642456?page=982",
"multi-eisKatalogUrl.key": "https:\/\/oxomi.com\/p\/1534781\/catalog\/10642456?page=982"
},
"doc_count": 20
},
{
"key": {
"multi-eisKatalogUrl.sorting": "https:\/\/oxomi.com\/p\/1534781\/catalog\/10642456?page=983",
"multi-eisKatalogUrl.key": "https:\/\/oxomi.com\/p\/1534781\/catalog\/10642456?page=983"
},
"doc_count": 4
},
{
"key": {
"multi-eisKatalogUrl.sorting": "https:\/\/oxomi.com\/p\/1534781\/catalog\/10642456?page=984",
"multi-eisKatalogUrl.key": "https:\/\/oxomi.com\/p\/1534781\/catalog\/10642456?page=984"
},
"doc_count": 16
},
{
"key": {
"multi-eisKatalogUrl.sorting": "https:\/\/oxomi.com\/p\/1534781\/catalog\/10642456?page=985",
"multi-eisKatalogUrl.key": "https:\/\/oxomi.com\/p\/1534781\/catalog\/10642456?page=985"
},
"doc_count": 29
},
{
"key": {
"multi-eisKatalogUrl.sorting": "https:\/\/oxomi.com\/p\/1534781\/catalog\/10642456?page=986",
"multi-eisKatalogUrl.key": "https:\/\/oxomi.com\/p\/1534781\/catalog\/10642456?page=986"
},
"doc_count": 8
},
{
"key": {
"multi-eisKatalogUrl.sorting": "https:\/\/oxomi.com\/p\/1534781\/catalog\/10642456?page=987",
"multi-eisKatalogUrl.key": "https:\/\/oxomi.com\/p\/1534781\/catalog\/10642456?page=987"
},
"doc_count": 11
}
]
},
"multi-typModel": {
"after_key": {
"multi-typModel.sorting": "Sitzb\u00e4nke f\u00fcr den Au\u00dfenbereich",
"multi-typModel.key": "Sitzb\u00e4nke f\u00fcr den Au\u00dfenbereich"
},
"buckets": [
{
"key": {
"multi-typModel.sorting": "Sitzb\u00e4nke f\u00fcr au\u00dfen",
"multi-typModel.key": "Sitzb\u00e4nke f\u00fcr au\u00dfen"
},
"doc_count": 86
},
{
"key": {
"multi-typModel.sorting": "Sitzb\u00e4nke f\u00fcr den Au\u00dfenbereich",
"multi-typModel.key": "Sitzb\u00e4nke f\u00fcr den Au\u00dfenbereich"
},
"doc_count": 6
}
]
},
"multi-farbe": {
"after_key": {
"multi-farbe.sorting": "wei\u00df",
"multi-farbe.key": "wei\u00df"
},
"buckets": [
{
"key": {
"multi-farbe.sorting": "DB 703 Eisenglimmer",
"multi-farbe.key": "DB 703 Eisenglimmer"
},
"doc_count": 2
},
{
"key": {
"multi-farbe.sorting": "DB 703 eisenglimmer",
"multi-farbe.key": "DB 703 eisenglimmer"
},
"doc_count": 3
},
{
"key": {
"multi-farbe.sorting": "Eiche hell",
"multi-farbe.key": "Eiche hell"
},
"doc_count": 6
},
{
"key": {
"multi-farbe.sorting": "RAL 7016 Anthrazitgrau",
"multi-farbe.key": "RAL 7016 Anthrazitgrau"
},
"doc_count": 2
},
{
"key": {
"multi-farbe.sorting": "RAL 9006 Wei\u00dfaluminium",
"multi-farbe.key": "RAL 9006 Wei\u00dfaluminium"
},
"doc_count": 2
},
{
"key": {
"multi-farbe.sorting": "RAL\u00a07016 anthrazitgrau",
"multi-farbe.key": "RAL\u00a07016 anthrazitgrau"
},
"doc_count": 3
},
{
"key": {
"multi-farbe.sorting": "RAL\u00a09006 wei\u00dfaluminium",
"multi-farbe.key": "RAL\u00a09006 wei\u00dfaluminium"
},
"doc_count": 3
},
{
"key": {
"multi-farbe.sorting": "bambus hell",
"multi-farbe.key": "bambus hell"
},
"doc_count": 1
},
{
"key": {
"multi-farbe.sorting": "blau",
"multi-farbe.key": "blau"
},
"doc_count": 4
},
{
"key": {
"multi-farbe.sorting": "braun",
"multi-farbe.key": "braun"
},
"doc_count": 14
},
{
"key": {
"multi-farbe.sorting": "gr\u00fcn",
"multi-farbe.key": "gr\u00fcn"
},
"doc_count": 12
},
{
"key": {
"multi-farbe.sorting": "kesseldruckimpr\u00e4gniert und lasiert",
"multi-farbe.key": "kesseldruckimpr\u00e4gniert und lasiert"
},
"doc_count": 5
},
{
"key": {
"multi-farbe.sorting": "verzinkt bambus hell",
"multi-farbe.key": "verzinkt bambus hell"
},
"doc_count": 1
},
{
"key": {
"multi-farbe.sorting": "verzinkt\/Bambus dunkel",
"multi-farbe.key": "verzinkt\/Bambus dunkel"
},
"doc_count": 4
},
{
"key": {
"multi-farbe.sorting": "wei\u00df",
"multi-farbe.key": "wei\u00df"
},
"doc_count": 12
}
]
},
"multi-radabstand": {
"buckets": []
},
"range-anzahlFahrradaufnahmen": {
"count": 0,
"min": null,
"max": null,
"avg": null,
"sum": 0.0
},
"multi-befestigungsart": {
"buckets": []
},
"multi-material": {
"after_key": {
"multi-material.sorting": "Stahl\/Kunststoff",
"multi-material.key": "Stahl\/Kunststoff"
},
"buckets": [
{
"key": {
"multi-material.sorting": "Kunststoff",
"multi-material.key": "Kunststoff"
},
"doc_count": 16
},
{
"key": {
"multi-material.sorting": "Kunststoff\/Stahl",
"multi-material.key": "Kunststoff\/Stahl"
},
"doc_count": 6
},
{
"key": {
"multi-material.sorting": "Stahl",
"multi-material.key": "Stahl"
},
"doc_count": 28
},
{
"key": {
"multi-material.sorting": "Stahl Bambus",
"multi-material.key": "Stahl Bambus"
},
"doc_count": 1
},
{
"key": {
"multi-material.sorting": "Stahl\/Bambus",
"multi-material.key": "Stahl\/Bambus"
},
"doc_count": 9
},
{
"key": {
"multi-material.sorting": "Stahl\/Holz",
"multi-material.key": "Stahl\/Holz"
},
"doc_count": 12
},
{
"key": {
"multi-material.sorting": "Stahl\/Kunststoff",
"multi-material.key": "Stahl\/Kunststoff"
},
"doc_count": 19
}
]
},
"multi-aufnahmekapazitaet": {
"buckets": []
},
"manufacturer-count": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"key": "b78b8d20378fdbc290b526035638758b",
"doc_count": 29
},
{
"key": "30c14f48bd293b931d30341933d7d048",
"doc_count": 28
},
{
"key": "18e6b17f5ea12a9dfb6ca9b1feb4755c",
"doc_count": 19
}
]
}
}
}
Shopware\Elasticsearch\Framework\DataAbstractionLayer\ElasticsearchEntityAggregator:aggregate
|