Can't perform facet count, as no facet is set
mohamednaleem opened this issue · 5 comments
mohamednaleem commented
Hi,
When I tried to use ais-refinement-list in angular-12v I am getting the below error "Can't perform facet count, as no facet is set" even given the attribute name correctly.
<ais-instantsearch [config]="config">
<ais-refinement-list
attribute="title"
operator="or"
[limit]="10"
Please help me with how to solve this issue. Is this issue is for angular-12v
Haroenv commented
is the attribute "title" set up as attributeForFaceting
in the dashboard?
mohamednaleem commented
Thanks for the reply, Actually I am using angular12 and not using the
Algolia dashboard instead am fetching the data from the strapi headless cms
database so using instantMeiliSearch
.html
<ais-instantsearch [config]="config">
<ais-search-box></ais-search-box>
<ais-refinement-list
attribute="title"
</ais-refinement-list>
<ais-hits>
<ng-template let-hits="hits">
<p-carousel class="mp-carousel-list mp-carousel-padding" [value]=
"hits"
[showNavigators]="true" [responsiveOptions]="responsiveOptions"
[numVisible]="5"
[numScroll]="5" [showIndicators]="false" [circular]="false">
<ng-template let-hit pTemplate="item">
<mat-card class="d-flex flex-column justify-content-between">
.ts file
import { environment } from 'src/environments/environment';
import { instantMeiliSearch } from ***@***.***/instant-meilisearch';
import { Curatedpick } from '../models/curated-picks';
const searchClient = instantMeiliSearch(
'http://localhost:7700',
'fs83kjsfs038e2o3usflsjfslhs',
)
…On Mon, Jul 12, 2021 at 2:00 PM Haroen Viaene ***@***.***> wrote:
is the attribute "title" set up as attributeForFaceting in the dashboard?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#820 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AFMGKMJ2XA74R5O5YCHZPQTTXKRZ5ANCNFSM5AEYZHXA>
.
Haroenv commented
Sorry, we don't support instantMeiliSearch, you can open an issue on their repository
Haroenv commented
FYI, this is a known issue on instant-meilisearch: https://github.com/meilisearch/instant-meilisearch#3-emove-attributes-from-facet-list
mohamednaleem commented
Thanks Algolia/Angular-Instantsearch,
I am following this link. Please refer this and help me what can I do. Here
there is no any error.
https://codesandbox.io/s/im-angularis-7xipe?file=/src/app/app.component.ts:159-188
…On Mon, Jul 12, 2021 at 4:27 PM Haroen Viaene ***@***.***> wrote:
FYI, this is a known issue on instant-meilisearch:
https://github.com/meilisearch/instant-meilisearch#3-emove-attributes-from-facet-list
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#820 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AFMGKMPQ6CPVUWGVQNCHU7DTXLDBVANCNFSM5AEYZHXA>
.