Reputation: 1781
I have a list of places: [A, B, C];
A user can create an item and associate a place to it:
item1 > place: A
The user can search for a place and get the items:
this.algoliaService.helper.addFacetRefinement('place', A);
All this works as expected, my question is:
How can I setup the creation of the item so it is associated with all the places ?
So a user picks a "ALL places" and any place search would have this item in the results?
Is there a way to add "All Places" in Algolia?
this.algoliaService.helper.addFacetRefinement('place', A,B,C);
Thanks
Upvotes: 0
Views: 462
Reputation: 1939
I see 2 possibilities:
has_place
and filter on this fieldUpvotes: 1