Skip to content

Commit

Permalink
fix(news) faceting distinct
Browse files Browse the repository at this point in the history
  • Loading branch information
ClaudiuCeia committed Jul 24, 2018
1 parent f4d8989 commit 645c049
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class="btn btn-secondary dropdown-toggle d-lg-none"
</div>
</div>

<div class="row">
<div class="row">
<div class="col-lg-8 col-md-12">
<h1 class="entry-title">{!! get_the_title() !!}</h1>
@include('partials/entry-meta')
Expand Down Expand Up @@ -96,7 +96,7 @@ class="btn btn-secondary dropdown-toggle d-lg-none"
</span>
</a>
</li>
</script>
</script>

</div>
</div>
Expand All @@ -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 + '"',
});
Expand Down

0 comments on commit 645c049

Please sign in to comment.