在调用 setIndex 更改索引后在 AlgoliaSearchHelper 上设置构面

Setting the facets on AlgoliaSearchHelper after calling the setIndex to change the index

我有几个不同的索引,我在每个索引之间切换,每个索引都有不同的方面。我已在 AlgoliaSearchHelper 实例上成功使用 setIndex 方法,但需要更改方面。

有办法吗?

我能够使用 Algolia Helper 完成此操作,使用 JavaScript 在索引之间切换并动态加载构面。