From 645c049aaf744adc7d6be42f616b1f40b9addb28 Mon Sep 17 00:00:00 2001 From: ClaudiuCeia Date: Tue, 24 Jul 2018 11:47:28 +0300 Subject: [PATCH] fix(news) faceting distinct --- .../resources/views/partials/content-single-stire.blade.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/site/web/app/themes/smart-city/resources/views/partials/content-single-stire.blade.php b/site/web/app/themes/smart-city/resources/views/partials/content-single-stire.blade.php index 984aa23..3ddaed6 100644 --- a/site/web/app/themes/smart-city/resources/views/partials/content-single-stire.blade.php +++ b/site/web/app/themes/smart-city/resources/views/partials/content-single-stire.blade.php @@ -22,7 +22,7 @@ class="btn btn-secondary dropdown-toggle d-lg-none" -
+

{!! get_the_title() !!}

@include('partials/entry-meta') @@ -96,7 +96,7 @@ class="btn btn-secondary dropdown-toggle d-lg-none" - +
@@ -113,8 +113,10 @@ class="btn btn-secondary dropdown-toggle d-lg-none" algolia.application_id, algolia.search_api_key ); + const helper = algoliasearchHelper(client, algolia.indices.posts_stire.name, { disjunctiveFacets: ['category'], + facetingAfterDistinct: true, filters: 'locale:"' + current_locale + '"', });