Dumped Contents
In
TaxonController.php
line 202:
return $row->getId();
}, $siteFilterFacets));
dump( $esAggregations);
$siteFilterShape = [];
if (count($esAggregations['shape']['buckets']) > 1) {
array:17 [
12 => array:3 [
"doc_count_error_upper_bound" => 0
"sum_other_doc_count" => 0
"buckets" => []
]
13 => array:3 [
"doc_count_error_upper_bound" => 0
"sum_other_doc_count" => 0
"buckets" => []
]
14 => array:3 [
"doc_count_error_upper_bound" => 0
"sum_other_doc_count" => 0
"buckets" => array:1 [
0 => array:2 [
"key" => "pour elle"
"doc_count" => 20
]
]
]
15 => array:3 [
"doc_count_error_upper_bound" => 0
"sum_other_doc_count" => 0
"buckets" => []
]
"color" => array:3 [
"doc_count_error_upper_bound" => 0
"sum_other_doc_count" => 0
"buckets" => array:20 [
0 => array:2 [
"key" => "3579"
"doc_count" => 1
]
1 => array:2 [
"key" => "3830"
"doc_count" => 1
]
2 => array:2 [
"key" => "3835"
"doc_count" => 1
]
3 => array:2 [
"key" => "3882"
"doc_count" => 1
]
4 => array:2 [
"key" => "3970"
"doc_count" => 1
]
5 => array:2 [
"key" => "4040"
"doc_count" => 1
]
6 => array:2 [
"key" => "4140"
"doc_count" => 1
]
7 => array:2 [
"key" => "4141"
"doc_count" => 1
]
8 => array:2 [
"key" => "4153"
"doc_count" => 1
]
9 => array:2 [
"key" => "4191"
"doc_count" => 1
]
10 => array:2 [
"key" => "4192"
"doc_count" => 1
]
11 => array:2 [
"key" => "4193"
"doc_count" => 1
]
12 => array:2 [
"key" => "4203"
"doc_count" => 1
]
13 => array:2 [
"key" => "4211"
"doc_count" => 1
]
14 => array:2 [
"key" => "4212"
"doc_count" => 1
]
15 => array:2 [
"key" => "4213"
"doc_count" => 1
]
16 => array:2 [
"key" => "4245"
"doc_count" => 1
]
17 => array:2 [
"key" => "4248"
"doc_count" => 1
]
18 => array:2 [
"key" => "4250"
"doc_count" => 1
]
19 => array:2 [
"key" => "4253"
"doc_count" => 1
]
]
]
"shape" => array:3 [
"doc_count_error_upper_bound" => 0
"sum_other_doc_count" => 0
"buckets" => array:1 [
0 => array:2 [
"key" => 1868
"doc_count" => 20
]
]
]
16 => array:3 [
"doc_count_error_upper_bound" => 0
"sum_other_doc_count" => 0
"buckets" => array:1 [
0 => array:2 [
"key" => "pour elle"
"doc_count" => 20
]
]
]
17 => array:3 [
"doc_count_error_upper_bound" => 0
"sum_other_doc_count" => 0
"buckets" => []
]
"badge" => array:3 [
"doc_count_error_upper_bound" => 0
"sum_other_doc_count" => 0
"buckets" => array:1 [
0 => array:2 [
"key" => "newest"
"doc_count" => 2
]
]
]
"max_price" => array:1 [
"value" => 4100.0
]
"min_price" => array:1 [
"value" => 4100.0
]
5 => array:3 [
"doc_count_error_upper_bound" => 0
"sum_other_doc_count" => 0
"buckets" => []
]
6 => array:3 [
"doc_count_error_upper_bound" => 0
"sum_other_doc_count" => 0
"buckets" => []
]
7 => array:3 [
"doc_count_error_upper_bound" => 0
"sum_other_doc_count" => 0
"buckets" => []
]
8 => array:3 [
"doc_count_error_upper_bound" => 0
"sum_other_doc_count" => 0
"buckets" => []
]
9 => array:3 [
"doc_count_error_upper_bound" => 0
"sum_other_doc_count" => 0
"buckets" => array:1 [
0 => array:2 [
"key" => "56 l"
"doc_count" => 20
]
]
]
10 => array:3 [
"doc_count_error_upper_bound" => 0
"sum_other_doc_count" => 0
"buckets" => array:1 [
0 => array:2 [
"key" => "coton enduit"
"doc_count" => 20
]
]
]
]
In
TaxonController.php
line 254:
}
}
dump( $siteFilterFacetsValues);
// Conserve que les filtres à facettes disponible pour cette recherche
$siteFilterFacets = array_filter($siteFilterFacets, function ($row) use (&$siteFilterFacetsValues) {
array:1 [
"color" => array:20 [
0 => "3579"
1 => "3830"
2 => "3835"
3 => "3882"
4 => "3970"
5 => "4040"
6 => "4140"
7 => "4141"
8 => "4153"
9 => "4191"
10 => "4192"
11 => "4193"
12 => "4203"
13 => "4211"
14 => "4212"
15 => "4213"
16 => "4245"
17 => "4248"
18 => "4250"
19 => "4253"
]
]
In
ElasticSearchService.php
line 385:
$client = ClientBuilder::create()->build();
$results = $client->search($params);
dump( $results);
return $results;
}
array:4 [
"took" => 0
"timed_out" => false
"_shards" => array:4 [
"total" => 1
"successful" => 1
"skipped" => 0
"failed" => 0
]
"hits" => array:3 [
"total" => array:2 [
"value" => 20
"relation" => "eq"
]
"max_score" => null
"hits" => array:20 [
0 => array:5 [
"_index" => "ppmcdev_2_fr_fr"
"_type" => "_doc"
"_id" => "VARIANT_41507"
"_score" => 3.0
"sort" => array:3 [
0 => 1
1 => 220
2 => 3.0
]
]
1 => array:5 [
"_index" => "ppmcdev_2_fr_fr"
"_type" => "_doc"
"_id" => "VARIANT_41469"
"_score" => 3.0
"sort" => array:3 [
0 => 1
1 => 155
2 => 3.0
]
]
2 => array:5 [
"_index" => "ppmcdev_2_fr_fr"
"_type" => "_doc"
"_id" => "VARIANT_35727"
"_score" => 3.0
"sort" => array:3 [
0 => 100
1 => 298
2 => 3.0
]
]
3 => array:5 [
"_index" => "ppmcdev_2_fr_fr"
"_type" => "_doc"
"_id" => "VARIANT_35879"
"_score" => 3.0
"sort" => array:3 [
0 => 100
1 => 237
2 => 3.0
]
]
4 => array:5 [
"_index" => "ppmcdev_2_fr_fr"
"_type" => "_doc"
"_id" => "VARIANT_40651"
"_score" => 3.0
"sort" => array:3 [
0 => 100
1 => 210
2 => 3.0
]
]
5 => array:5 [
"_index" => "ppmcdev_2_fr_fr"
"_type" => "_doc"
"_id" => "VARIANT_40787"
"_score" => 3.0
"sort" => array:3 [
0 => 100
1 => 198
2 => 3.0
]
]
6 => array:5 [
"_index" => "ppmcdev_2_fr_fr"
"_type" => "_doc"
"_id" => "VARIANT_32668"
"_score" => 3.0
"sort" => array:3 [
0 => 100
1 => 95
2 => 3.0
]
]
7 => array:5 [
"_index" => "ppmcdev_2_fr_fr"
"_type" => "_doc"
"_id" => "VARIANT_41218"
"_score" => 3.0
"sort" => array:3 [
0 => 100
1 => 78
2 => 3.0
]
]
8 => array:5 [
"_index" => "ppmcdev_2_fr_fr"
"_type" => "_doc"
"_id" => "VARIANT_40440"
"_score" => 3.0
"sort" => array:3 [
0 => 100
1 => 62
2 => 3.0
]
]
9 => array:5 [
"_index" => "ppmcdev_2_fr_fr"
"_type" => "_doc"
"_id" => "VARIANT_39771"
"_score" => 3.0
"sort" => array:3 [
0 => 100
1 => 60
2 => 3.0
]
]
10 => array:5 [
"_index" => "ppmcdev_2_fr_fr"
"_type" => "_doc"
"_id" => "VARIANT_36957"
"_score" => 3.0
"sort" => array:3 [
0 => 100
1 => 59
2 => 3.0
]
]
11 => array:5 [
"_index" => "ppmcdev_2_fr_fr"
"_type" => "_doc"
"_id" => "VARIANT_41037"
"_score" => 3.0
"sort" => array:3 [
0 => 100
1 => 51
2 => 3.0
]
]
12 => array:5 [
"_index" => "ppmcdev_2_fr_fr"
"_type" => "_doc"
"_id" => "VARIANT_40872"
"_score" => 3.0
"sort" => array:3 [
0 => 100
1 => 43
2 => 3.0
]
]
13 => array:5 [
"_index" => "ppmcdev_2_fr_fr"
"_type" => "_doc"
"_id" => "VARIANT_41316"
"_score" => 3.0
"sort" => array:3 [
0 => 100
1 => 27
2 => 3.0
]
]
14 => array:5 [
"_index" => "ppmcdev_2_fr_fr"
"_type" => "_doc"
"_id" => "VARIANT_39688"
"_score" => 3.0
"sort" => array:3 [
0 => 100
1 => 25
2 => 3.0
]
]
15 => array:5 [
"_index" => "ppmcdev_2_fr_fr"
"_type" => "_doc"
"_id" => "VARIANT_35296"
"_score" => 3.0
"sort" => array:3 [
0 => 100
1 => 21
2 => 3.0
]
]
16 => array:5 [
"_index" => "ppmcdev_2_fr_fr"
"_type" => "_doc"
"_id" => "VARIANT_40375"
"_score" => 3.0
"sort" => array:3 [
0 => 100
1 => 17
2 => 3.0
]
]
17 => array:5 [
"_index" => "ppmcdev_2_fr_fr"
"_type" => "_doc"
"_id" => "VARIANT_40907"
"_score" => 3.0
"sort" => array:3 [
0 => 100
1 => 15
2 => 3.0
]
]
18 => array:5 [
"_index" => "ppmcdev_2_fr_fr"
"_type" => "_doc"
"_id" => "VARIANT_37834"
"_score" => 3.0
"sort" => array:3 [
0 => 100
1 => 11
2 => 3.0
]
]
19 => array:5 [
"_index" => "ppmcdev_2_fr_fr"
"_type" => "_doc"
"_id" => "VARIANT_40285"
"_score" => 3.0
"sort" => array:3 [
0 => 100
1 => 6
2 => 3.0
]
]
]
]
]
In
TaxonController.php
line 312:
}, $results['hits']['hits']));
}
dump($taxon->getLevel());
// Récupère les liens pour la partie référencement
$referencementllinks = [];
2
In
TwigExtension.php
line 414:
public function switchLanguage() {
$actual_link = "https://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]";
dump($actual_link );
return '';
}
"https://ppmc-staging.webapic.com/nos-produits/sacs/sac-test"