Нотатки
Маршрут: категорія —, місто region #2209 · ES: всього 0, id на сторінці: 0 · знайдено в БД: 0
Elasticsearch
POST /abyhomcom/_search → 200 · 16.7 ms · знайдено 0, повернуто 0
тіло запиту
{
"query": {
"bool": {
"must": [
{
"multi_match": {
"query": "genmachine mini pc",
"fields": [
"name^3",
"description",
"city^2"
],
"type": "best_fields",
"operator": "and",
"fuzziness": "AUTO",
"prefix_length": 2
}
}
],
"filter": [
{
"terms": {
"city_id": [
2209,
136,
2210,
3506,
3507,
3508,
3509,
3510,
3511,
3512,
3513,
3514,
3515,
3516,
3517,
3518,
3519,
3520,
3521,
3522,
3523,
3524,
3649,
6195,
6277,
6289,
6315,
6335,
6391,
6436,
6550,
6660,
6868,
6974,
7064,
7065,
7068,
7320,
7375,
7411,
7413,
7486,
7498,
7508,
7527,
7528,
7577,
7722,
7731,
7752,
7756,
7954,
8022,
8176,
8266,
8332,
8380,
8406,
8652,
8655,
8687,
8700,
8727,
8746,
8836,
8982,
9021,
9040,
9077,
9108,
9136,
9171,
9178,
9311,
9411,
9472,
9488,
9724,
9735,
9805,
9817,
9935,
10137,
10142,
10191,
10282,
10292,
10350,
10415,
10426,
10505,
10662,
10717,
10797,
10879,
10900,
11106,
11288,
11438,
11489,
11632,
11645,
11688,
11811,
11865,
11887,
11901,
12028,
12265,
12507,
12570,
12646,
12704,
12731
]
}
}
]
}
},
"sort": [
"_score",
{
"data_post": {
"order": "desc"
}
}
],
"from": 0,
"size": 50,
"_source": [
"id",
"m2",
"km",
"price2",
"attribute"
],
"track_total_hits": true,
"aggs": {
"cities": {
"terms": {
"field": "city_id",
"size": 30
}
},
"cats": {
"terms": {
"field": "category_id",
"size": 2000
}
}
}
} SQL
SELECT c.* FROM `category` c ORDER BY c.id · 2.66 ms
SELECT c.id, c.parent_id, c.url AS slug, COALESCE(NULLIF(c.name_ua, ''), NULLIF(c.name, '')) AS name, NULL AS name_loc FROM `city` c WHERE c.url IN (?, ?, ?, ?) LIMIT 1 ["hersonskaya-oblast","\/hersonskaya-oblast","hersonskaya-oblast\/","\/hersonskaya-oblast\/"] · 1.17 ms
SELECT c.id FROM `city` c WHERE c.parent_id = 0 LIMIT 2 · 1.19 ms
SELECT c.id FROM `city` c WHERE c.parent_id IN (?) [2209] · 0.45 ms
SELECT c.id FROM `city` c WHERE c.parent_id IN (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) [136,2210,3506,3507,3508,3509,3510,3511,3512,3513,3514,3515,3516,3517,3518,3519,3520,3521,3522,3523,3524,3649,6195,6277,6289,6315,6335,6391,6436,6550,6660,6868,6974,7064,7065,7068,7320,7375,7411,7413,7486,7498,7508,7527,7528,7577,7722,7731,7752,7756,7954,8022,8176,8266,8332,8380,8406,8652,8655,8687,8700,8727,8746,8836,8982,9021,9040,9077,9108,9136,9171,9178,9311,9411,9472,9488,9724,9735,9805,9817,9935,10137,10142,10191,10282,10292,10350,10415,10426,10505,10662,10717,10797,10879,10900,11106,11288,11438,11489,11632,11645,11688,11811,11865,11887,11901,12028,12265,12507,12570,12646,12704,12731] · 0.9 ms
SELECT c.id, c.parent_id, c.url AS slug, COALESCE(NULLIF(c.name_ua, ''), NULLIF(c.name, '')) AS name, NULL AS name_loc FROM `city` c WHERE c.parent_id = ? LIMIT 3000 [2209] · 5.11 ms
SELECT c.id, c.parent_id, c.url AS slug, COALESCE(NULLIF(c.name_ua, ''), NULLIF(c.name, '')) AS name, NULL AS name_loc FROM `city` c WHERE c.parent_id = ? LIMIT 3000 [5] · 0.98 ms