instantsearch-itemsjs-adapter icon indicating copy to clipboard operation
instantsearch-itemsjs-adapter copied to clipboard

Support multiple indexes

Open chammaaomar opened this issue 1 year ago • 2 comments

Currently only a single possible index is support, due to the global variable index in adapter.ts. It would be helpful if getSearchClient could take an index parameter. It currently looks like it does, since it takes the parameter newIndex?: any, but this newIndex is only used as index || newIndex, so if there's an existing index, newIndex ignored. Not sure if that's intentional. Hope my issue is clear. Thanks for developing and maintaining this library.

chammaaomar avatar Apr 18 '23 21:04 chammaaomar