Debug
es raw query
{
"_source": [
"_id"
],
"aggregations": {
"brand": {
"terms": {
"field": "brand.untouched",
"size": 1000
}
},
"categories": {
"terms": {
"field": "categories_parents_catalog_codes",
"size": 1000
}
},
"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_with_include_self_filter": {
"aggs": {
"continuum_price_stats": {
"stats": {
"field": "lowest_public_price_with_vat"
}
}
},
"filter": {
"match_all": {}
}
},
"offers": {
"terms": {
"field": "offers.untouched",
"size": 1000
}
},
"stores": {
"terms": {
"field": "categories_parents_catalog_codes",
"size": 1000
}
}
},
"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": "4bf0f7deefa77878491505"
}
},
{
"term": {
"brand.untouched": "TRAMICO"
}
}
],
"must": {
"match_all": {}
}
}
},
"score_mode": "sum"
}
},
"size": 40
}
es raw result
{
"_shards": {
"failed": 0,
"successful": 5,
"total": 5
},
"aggregations": {
"brand": {
"buckets": [
{
"doc_count": 5,
"key": "TRAMICO"
}
],
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0
},
"categories": {
"buckets": [
{
"doc_count": 5,
"key": "4b8d255e2b235801788415"
},
{
"doc_count": 5,
"key": "4bf0f7deefa77878491505"
},
{
"doc_count": 5,
"key": "526f96827f4dc524290683"
},
{
"doc_count": 5,
"key": "id_b_b09_b09b8"
},
{
"doc_count": 5,
"key": "root"
},
{
"doc_count": 2,
"key": "559bf314afd67895325308"
},
{
"doc_count": 2,
"key": "store_root"
},
{
"doc_count": 1,
"key": "4bf0f838ee6eb669758032"
},
{
"doc_count": 1,
"key": "5225fde1aa624455342100"
},
{
"doc_count": 1,
"key": "542d46f653362466857478"
}
],
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0
},
"continuum_price": {
"buckets": {
"*-*": {
"doc_count": 5
}
}
},
"continuum_price_stats": {
"continuum_price_stats": {
"avg": 14.9088,
"count": 5,
"max": 33.096,
"min": 5.568,
"sum": 74.544
},
"doc_count": 5
},
"continuum_price_stats_with_include_self_filter": {
"continuum_price_stats": {
"avg": 14.9088,
"count": 5,
"max": 33.096,
"min": 5.568,
"sum": 74.544
},
"doc_count": 5
},
"offers": {
"buckets": [
{
"doc_count": 2,
"key": "Fabrication Fran\u00e7aise"
}
],
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0
},
"stores": {
"buckets": [
{
"doc_count": 5,
"key": "4b8d255e2b235801788415"
},
{
"doc_count": 5,
"key": "4bf0f7deefa77878491505"
},
{
"doc_count": 5,
"key": "526f96827f4dc524290683"
},
{
"doc_count": 5,
"key": "id_b_b09_b09b8"
},
{
"doc_count": 5,
"key": "root"
},
{
"doc_count": 2,
"key": "559bf314afd67895325308"
},
{
"doc_count": 2,
"key": "store_root"
},
{
"doc_count": 1,
"key": "4bf0f838ee6eb669758032"
},
{
"doc_count": 1,
"key": "5225fde1aa624455342100"
},
{
"doc_count": 1,
"key": "542d46f653362466857478"
}
],
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0
}
},
"hits": {
"hits": [
{
"_id": "24721",
"_index": "catalog_2023_02",
"_score": 23.844044,
"_source": {},
"_type": "product"
},
{
"_id": "4153",
"_index": "catalog_2023_02",
"_score": 22.36392,
"_source": {},
"_type": "product"
},
{
"_id": "27888",
"_index": "catalog_2023_02",
"_score": 19.525356,
"_source": {},
"_type": "product"
},
{
"_id": "31649",
"_index": "catalog_2023_02",
"_score": 19.340143,
"_source": {},
"_type": "product"
},
{
"_id": "4154",
"_index": "catalog_2023_02",
"_score": 19.091534,
"_source": {},
"_type": "product"
}
],
"max_score": 23.844044,
"total": 5
},
"timed_out": false,
"took": 3
}
flattened ui facets
[
{
"buckets": [
{
"continuum_price_stats": {
"avg": 14.9088,
"count": 5,
"max": 33.096,
"min": 5.568,
"sum": 74.544
},
"doc_count": 5
},
{
"continuum_price_stats": {
"avg": 14.9088,
"count": 5,
"max": 33.096,
"min": 5.568,
"sum": 74.544
},
"doc_count": 5
}
],
"name": "continuum_price",
"unit": null
},
{
"buckets": [
{
"doc_count": 5,
"key": "4b8d255e2b235801788415"
},
{
"doc_count": 5,
"key": "4bf0f7deefa77878491505"
},
{
"doc_count": 5,
"key": "526f96827f4dc524290683"
},
{
"doc_count": 5,
"key": "id_b_b09_b09b8"
},
{
"doc_count": 5,
"key": "root"
},
{
"doc_count": 2,
"key": "559bf314afd67895325308"
},
{
"doc_count": 2,
"key": "store_root"
},
{
"doc_count": 1,
"key": "4bf0f838ee6eb669758032"
},
{
"doc_count": 1,
"key": "5225fde1aa624455342100"
},
{
"doc_count": 1,
"key": "542d46f653362466857478"
}
],
"name": "stores",
"unit": null
},
{
"buckets": [
{
"continuum_price_stats": {
"avg": 14.9088,
"count": 5,
"max": 33.096,
"min": 5.568,
"sum": 74.544
},
"doc_count": 5
}
],
"name": "continuum_price_stats_with_include_self_filter",
"unit": null
},
{
"buckets": [
{
"doc_count": 5,
"key": "4b8d255e2b235801788415"
},
{
"doc_count": 5,
"key": "4bf0f7deefa77878491505"
},
{
"doc_count": 5,
"key": "526f96827f4dc524290683"
},
{
"doc_count": 5,
"key": "id_b_b09_b09b8"
},
{
"doc_count": 5,
"key": "root"
},
{
"doc_count": 2,
"key": "559bf314afd67895325308"
},
{
"doc_count": 2,
"key": "store_root"
},
{
"doc_count": 1,
"key": "4bf0f838ee6eb669758032"
},
{
"doc_count": 1,
"key": "5225fde1aa624455342100"
},
{
"doc_count": 1,
"key": "542d46f653362466857478"
}
],
"name": "categories",
"unit": null
},
{
"buckets": [
{
"continuum_price_stats": {
"avg": 14.9088,
"count": 5,
"max": 33.096,
"min": 5.568,
"sum": 74.544
},
"doc_count": 5
}
],
"name": "continuum_price_stats",
"unit": null
},
{
"buckets": [
{
"doc_count": 2,
"key": "Fabrication Fran\u00e7aise"
}
],
"name": "offers",
"unit": null
},
{
"buckets": [
{
"doc_count": 5,
"key": "TRAMICO"
}
],
"name": "brand",
"unit": null
}
]
flattened suggestions
[]