Debug
es raw query
{
"_source": [
"_id",
"catalog_code"
],
"aggregations": {
"brand": {
"terms": {
"field": "brand.untouched",
"size": 1000
}
},
"categories": {
"terms": {
"field": "categories_parents_catalog_codes",
"size": 1000
}
},
"charge": {
"aggs": {
"charge_nested": {
"aggs": {
"charge_nested_filtered": {
"aggs": {
"charge_reverse_nested": {
"aggs": {
"charge_reverse_nested_parent_filter": {
"filter": {
"match_all": {}
}
}
},
"reverse_nested": {}
},
"charge_unit": {
"terms": {
"field": "articles.characteristics.unit.untouched",
"size": 1
}
}
},
"terms": {
"field": "articles.characteristics.value.untouched",
"size": 1000
}
}
},
"filter": {
"term": {
"articles.characteristics.name.untouched": "Charge"
}
}
}
},
"nested": {
"path": "articles.characteristics"
}
},
"continuum_price": {
"range": {
"field": "lowest_public_price_with_vat",
"keyed": true,
"ranges": [
{
"gte": 0
}
]
}
},
"continuum_price_stats": {
"aggs": {
"continuum_price_stats": {
"stats": {
"field": "lowest_public_price_with_vat"
}
}
},
"filter": {
"match_all": {}
}
},
"continuum_price_stats_filtered": {
"aggs": {
"continuum_price_stats": {
"stats": {
"field": "lowest_public_price_with_vat"
}
}
},
"filter": {
"match_all": {}
}
},
"continuum_price_stats_with_include_self_filter": {
"aggs": {
"continuum_price_stats": {
"stats": {
"field": "lowest_public_price_with_vat"
}
}
},
"filter": {
"match_all": {}
}
},
"delivery24h": {
"terms": {
"field": "is_delivery_24h",
"size": 1000
}
},
"diametre": {
"aggs": {
"diametre_nested": {
"aggs": {
"diametre_nested_filtered": {
"aggs": {
"diametre_reverse_nested": {
"aggs": {
"diametre_reverse_nested_parent_filter": {
"filter": {
"match_all": {}
}
}
},
"reverse_nested": {}
},
"diametre_unit": {
"terms": {
"field": "articles.characteristics.unit.untouched",
"size": 1
}
}
},
"terms": {
"field": "articles.characteristics.value.untouched",
"size": 1000
}
}
},
"filter": {
"term": {
"articles.characteristics.name.untouched": "Diam\u00e8tre"
}
}
}
},
"nested": {
"path": "articles.characteristics"
}
},
"longueur": {
"aggs": {
"longueur_nested": {
"aggs": {
"longueur_nested_filtered": {
"aggs": {
"longueur_reverse_nested": {
"aggs": {
"longueur_reverse_nested_parent_filter": {
"filter": {
"match_all": {}
}
}
},
"reverse_nested": {}
},
"longueur_unit": {
"terms": {
"field": "articles.characteristics.unit.untouched",
"size": 1
}
}
},
"terms": {
"field": "articles.characteristics.value.untouched",
"size": 1000
}
}
},
"filter": {
"term": {
"articles.characteristics.name.untouched": "Longueur"
}
}
}
},
"nested": {
"path": "articles.characteristics"
}
},
"nature-du-support": {
"aggs": {
"nature-du-support_nested": {
"aggs": {
"nature-du-support_nested_filtered": {
"aggs": {
"nature-du-support_reverse_nested": {
"aggs": {
"nature-du-support_reverse_nested_parent_filter": {
"filter": {
"match_all": {}
}
}
},
"reverse_nested": {}
},
"nature-du-support_unit": {
"terms": {
"field": "articles.characteristics.unit.untouched",
"size": 1
}
}
},
"terms": {
"field": "articles.characteristics.value.untouched",
"size": 1000
}
}
},
"filter": {
"term": {
"articles.characteristics.name.untouched": "Nature du support"
}
}
}
},
"nested": {
"path": "articles.characteristics"
}
},
"offers": {
"terms": {
"field": "offers.untouched",
"size": 1000
}
},
"type-de-cheville": {
"aggs": {
"type-de-cheville_nested": {
"aggs": {
"type-de-cheville_nested_filtered": {
"aggs": {
"type-de-cheville_reverse_nested": {
"aggs": {
"type-de-cheville_reverse_nested_parent_filter": {
"filter": {
"match_all": {}
}
}
},
"reverse_nested": {}
},
"type-de-cheville_unit": {
"terms": {
"field": "articles.characteristics.unit.untouched",
"size": 1
}
}
},
"terms": {
"field": "articles.characteristics.value.untouched",
"size": 1000
}
}
},
"filter": {
"term": {
"articles.characteristics.name.untouched": "Type de cheville"
}
}
}
},
"nested": {
"path": "articles.characteristics"
}
}
},
"from": 0,
"query": {
"function_score": {
"functions": [
{
"field_value_factor": {
"factor": 2,
"field": "availability",
"modifier": "square"
}
},
{
"gauss": {
"first_published_at": {
"decay": 0.5,
"offset": "30d",
"scale": "90d"
}
}
},
{
"field_value_factor": {
"factor": 1,
"field": "availability"
},
"filter": {
"term": {
"discount": 1
}
}
},
{
"field_value_factor": {
"factor": 1,
"field": "sales_stat.ct_last_month",
"modifier": "log1p"
}
},
{
"field_value_factor": {
"factor": 0.75,
"field": "sales_stat.ct_last_three_months",
"modifier": "log1p"
}
},
{
"field_value_factor": {
"factor": 0.5,
"field": "sales_stat.ct_last_year",
"modifier": "log1p"
}
},
{
"field_value_factor": {
"factor": 0.3,
"field": "comments_stat.ct",
"modifier": "log1p"
}
},
{
"field_value_factor": {
"factor": 0.1,
"field": "comments_stat.avg_note",
"modifier": "log1p"
}
}
],
"query": {
"bool": {
"filter": [
{
"term": {
"categories_parents_catalog_codes": "66aca783ebefd157357095"
}
}
],
"must": {
"match_all": {}
}
}
},
"score_mode": "sum"
}
},
"size": 40
}
es raw result
{
"_shards": {
"failed": 0,
"skipped": 0,
"successful": 5,
"total": 5
},
"aggregations": {
"brand": {
"buckets": [
{
"doc_count": 3,
"key": "SIMPSON Strong-Tie"
},
{
"doc_count": 2,
"key": "SPIT"
},
{
"doc_count": 1,
"key": "FISCHER"
},
{
"doc_count": 1,
"key": "ING FIXATIONS"
},
{
"doc_count": 1,
"key": "RAWL"
}
],
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0
},
"categories": {
"buckets": [
{
"doc_count": 8,
"key": "4bf0f7deefa77878491505"
},
{
"doc_count": 8,
"key": "573c8cf57c62f004942971"
},
{
"doc_count": 8,
"key": "66aca783ebefd157357095"
},
{
"doc_count": 8,
"key": "root"
},
{
"doc_count": 6,
"key": "4bf0f838ee6eb669758032"
},
{
"doc_count": 6,
"key": "id_c_c03_4_c03b4"
},
{
"doc_count": 2,
"key": "store_root"
},
{
"doc_count": 1,
"key": "559bf314afd67895325308"
},
{
"doc_count": 1,
"key": "640083c19e607778550040"
}
],
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0
},
"charge": {
"charge_nested": {
"charge_nested_filtered": {
"buckets": [],
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0
},
"doc_count": 0
},
"doc_count": 77
},
"continuum_price": {
"buckets": {
"*-*": {
"doc_count": 5
}
}
},
"continuum_price_stats": {
"continuum_price_stats": {
"avg": 40.660799999999995,
"count": 5,
"max": 96.3,
"min": 5.1,
"sum": 203.30399999999997
},
"doc_count": 8
},
"continuum_price_stats_filtered": {
"continuum_price_stats": {
"avg": 40.660799999999995,
"count": 5,
"max": 96.3,
"min": 5.1,
"sum": 203.30399999999997
},
"doc_count": 8
},
"continuum_price_stats_with_include_self_filter": {
"continuum_price_stats": {
"avg": 40.660799999999995,
"count": 5,
"max": 96.3,
"min": 5.1,
"sum": 203.30399999999997
},
"doc_count": 8
},
"delivery24h": {
"buckets": [
{
"doc_count": 5,
"key": 1
},
{
"doc_count": 3,
"key": 0
}
],
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0
},
"diametre": {
"diametre_nested": {
"diametre_nested_filtered": {
"buckets": [
{
"diametre_reverse_nested": {
"diametre_reverse_nested_parent_filter": {
"doc_count": 1
},
"doc_count": 1
},
"diametre_unit": {
"buckets": [
{
"doc_count": 2,
"key": "mm"
}
],
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0
},
"doc_count": 2,
"key": "15"
},
{
"diametre_reverse_nested": {
"diametre_reverse_nested_parent_filter": {
"doc_count": 1
},
"doc_count": 1
},
"diametre_unit": {
"buckets": [
{
"doc_count": 1,
"key": "mm"
}
],
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0
},
"doc_count": 1,
"key": "12"
},
{
"diametre_reverse_nested": {
"diametre_reverse_nested_parent_filter": {
"doc_count": 1
},
"doc_count": 1
},
"diametre_unit": {
"buckets": [
{
"doc_count": 1,
"key": "mm"
}
],
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0
},
"doc_count": 1,
"key": "16"
},
{
"diametre_reverse_nested": {
"diametre_reverse_nested_parent_filter": {
"doc_count": 1
},
"doc_count": 1
},
"diametre_unit": {
"buckets": [
{
"doc_count": 1,
"key": "mm"
}
],
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0
},
"doc_count": 1,
"key": "18"
},
{
"diametre_reverse_nested": {
"diametre_reverse_nested_parent_filter": {
"doc_count": 1
},
"doc_count": 1
},
"diametre_unit": {
"buckets": [
{
"doc_count": 1,
"key": "mm"
}
],
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0
},
"doc_count": 1,
"key": "20"
},
{
"diametre_reverse_nested": {
"diametre_reverse_nested_parent_filter": {
"doc_count": 1
},
"doc_count": 1
},
"diametre_unit": {
"buckets": [
{
"doc_count": 1,
"key": "mm"
}
],
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0
},
"doc_count": 1,
"key": "22"
}
],
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0
},
"doc_count": 7
},
"doc_count": 77
},
"longueur": {
"doc_count": 77,
"longueur_nested": {
"doc_count": 8,
"longueur_nested_filtered": {
"buckets": [
{
"doc_count": 2,
"key": "330",
"longueur_reverse_nested": {
"doc_count": 1,
"longueur_reverse_nested_parent_filter": {
"doc_count": 1
}
},
"longueur_unit": {
"buckets": [
{
"doc_count": 2,
"key": "mm"
}
],
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0
}
},
{
"doc_count": 2,
"key": "85",
"longueur_reverse_nested": {
"doc_count": 1,
"longueur_reverse_nested_parent_filter": {
"doc_count": 1
}
},
"longueur_unit": {
"buckets": [
{
"doc_count": 2,
"key": "mm"
}
],
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0
}
},
{
"doc_count": 1,
"key": "130",
"longueur_reverse_nested": {
"doc_count": 1,
"longueur_reverse_nested_parent_filter": {
"doc_count": 1
}
},
"longueur_unit": {
"buckets": [
{
"doc_count": 1,
"key": "mm"
}
],
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0
}
},
{
"doc_count": 1,
"key": "140",
"longueur_reverse_nested": {
"doc_count": 1,
"longueur_reverse_nested_parent_filter": {
"doc_count": 1
}
},
"longueur_unit": {
"buckets": [
{
"doc_count": 1,
"key": "mm"
}
],
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0
}
},
{
"doc_count": 1,
"key": "50",
"longueur_reverse_nested": {
"doc_count": 1,
"longueur_reverse_nested_parent_filter": {
"doc_count": 1
}
},
"longueur_unit": {
"buckets": [
{
"doc_count": 1,
"key": "mm"
}
],
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0
}
},
{
"doc_count": 1,
"key": "69",
"longueur_reverse_nested": {
"doc_count": 1,
"longueur_reverse_nested_parent_filter": {
"doc_count": 1
}
},
"longueur_unit": {
"buckets": [
{
"doc_count": 1,
"key": "mm"
}
],
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0
}
}
],
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0
}
}
},
"nature-du-support": {
"doc_count": 77,
"nature-du-support_nested": {
"doc_count": 0,
"nature-du-support_nested_filtered": {
"buckets": [],
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0
}
}
},
"offers": {
"buckets": [
{
"doc_count": 1,
"key": "Produits reconditionn\u00e9s"
}
],
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0
},
"type-de-cheville": {
"doc_count": 77,
"type-de-cheville_nested": {
"doc_count": 0,
"type-de-cheville_nested_filtered": {
"buckets": [],
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0
}
}
}
},
"hits": {
"hits": [
{
"_id": "p-4771",
"_index": "catalog_2025_01",
"_score": 20.778698,
"_source": {
"catalog_code": "id_C03B4G002P001"
},
"_type": "product"
},
{
"_id": "p-78641",
"_index": "catalog_2025_01",
"_score": 17.591927,
"_source": {
"catalog_code": "2a0661a56a726868c976465d42d734a7_5c408b7fd2a39"
},
"_type": "product"
},
{
"_id": "p-59341",
"_index": "catalog_2025_01",
"_score": 16.982271,
"_source": {
"catalog_code": "767148e4dd81af1dcd1f49de7283b02c"
},
"_type": "product"
},
{
"_id": "p-91332",
"_index": "catalog_2025_01",
"_score": 16.687975,
"_source": {
"catalog_code": "2d404eee800f454af9115983b9eff9db_5f29078a79da1"
},
"_type": "product"
},
{
"_id": "p-91914",
"_index": "catalog_2025_01",
"_score": 16.176092,
"_source": {
"catalog_code": "12dc999bdb38abe13d885994e9361ad7_5f782272a1dcf"
},
"_type": "product"
},
{
"_id": "p-31890",
"_index": "catalog_2025_01",
"_score": 1.7793078,
"_source": {
"catalog_code": "SIMPSSH"
},
"_type": "product"
},
{
"_id": "p-46525",
"_index": "catalog_2025_01",
"_score": 0.6589649,
"_source": {
"catalog_code": "Id_SIMPSH20130"
},
"_type": "product"
},
{
"_id": "p-120077",
"_index": "catalog_2025_01",
"_score": 5.2091702e-11,
"_source": {
"catalog_code": "Id_SIMPSSH16085-RP6RE"
},
"_type": "product"
}
],
"max_score": 20.778698,
"total": 8
},
"timed_out": false,
"took": 1
}
flattened ui facets
[
{
"buckets": [
{
"doc_count": 1,
"key": "330"
},
{
"doc_count": 1,
"key": "85"
},
{
"doc_count": 1,
"key": "130"
},
{
"doc_count": 1,
"key": "140"
},
{
"doc_count": 1,
"key": "50"
},
{
"doc_count": 1,
"key": "69"
}
],
"name": "longueur",
"unit": "mm"
},
{
"buckets": [
{
"continuum_price_stats": {
"avg": 40.660799999999995,
"count": 5,
"max": 96.3,
"min": 5.1,
"sum": 203.30399999999997
},
"doc_count": 8
}
],
"name": "continuum_price_stats_with_include_self_filter",
"unit": null
},
{
"buckets": [
{
"doc_count": 1,
"key": "Produits reconditionn\u00e9s"
}
],
"name": "offers",
"unit": null
},
{
"buckets": [],
"name": "charge",
"unit": null
},
{
"buckets": [
{
"continuum_price_stats": {
"avg": 40.660799999999995,
"count": 5,
"max": 96.3,
"min": 5.1,
"sum": 203.30399999999997
},
"doc_count": 8
}
],
"name": "continuum_price_stats_filtered",
"unit": null
},
{
"buckets": [
{
"doc_count": 1,
"key": "15"
},
{
"doc_count": 1,
"key": "12"
},
{
"doc_count": 1,
"key": "16"
},
{
"doc_count": 1,
"key": "18"
},
{
"doc_count": 1,
"key": "20"
},
{
"doc_count": 1,
"key": "22"
}
],
"name": "diametre",
"unit": "mm"
},
{
"buckets": [
{
"doc_count": 5,
"key": 1
},
{
"doc_count": 3,
"key": 0
}
],
"name": "delivery24h",
"unit": null
},
{
"buckets": [],
"name": "type-de-cheville",
"unit": null
},
{
"buckets": [],
"name": "nature-du-support",
"unit": null
},
{
"buckets": [
{
"doc_count": 8,
"key": "4bf0f7deefa77878491505"
},
{
"doc_count": 8,
"key": "573c8cf57c62f004942971"
},
{
"doc_count": 8,
"key": "66aca783ebefd157357095"
},
{
"doc_count": 8,
"key": "root"
},
{
"doc_count": 6,
"key": "4bf0f838ee6eb669758032"
},
{
"doc_count": 6,
"key": "id_c_c03_4_c03b4"
},
{
"doc_count": 2,
"key": "store_root"
},
{
"doc_count": 1,
"key": "559bf314afd67895325308"
},
{
"doc_count": 1,
"key": "640083c19e607778550040"
}
],
"name": "categories",
"unit": null
},
{
"buckets": [
{
"continuum_price_stats": {
"avg": 40.660799999999995,
"count": 5,
"max": 96.3,
"min": 5.1,
"sum": 203.30399999999997
},
"doc_count": 8
}
],
"name": "continuum_price_stats",
"unit": null
},
{
"buckets": [
{
"doc_count": 3,
"key": "SIMPSON Strong-Tie"
},
{
"doc_count": 2,
"key": "SPIT"
},
{
"doc_count": 1,
"key": "FISCHER"
},
{
"doc_count": 1,
"key": "ING FIXATIONS"
},
{
"doc_count": 1,
"key": "RAWL"
}
],
"name": "brand",
"unit": null
},
{
"buckets": [
{
"continuum_price_stats": {
"avg": 40.660799999999995,
"count": 5,
"max": 96.3,
"min": 5.1,
"sum": 203.30399999999997
},
"doc_count": 8
},
{
"continuum_price_stats": {
"avg": 40.660799999999995,
"count": 5,
"max": 96.3,
"min": 5.1,
"sum": 203.30399999999997
},
"doc_count": 8
},
{
"continuum_price_stats": {
"avg": 40.660799999999995,
"count": 5,
"max": 96.3,
"min": 5.1,
"sum": 203.30399999999997
},
"doc_count": 8
}
],
"name": "continuum_price",
"unit": null
}
]
flattened suggestions
[]