One InstantSearch Multiple Configuration

Hi. i want to create multiple hits with each configuration in one instantsearch. example :

  <Index indexName="mydatas">
    <Configure distinct={true} />
    <Hits />

  <Index indexName="mydatas">
    <Configure distinct={false} />
    <Hits />

The both result above have similiar result, namely hits with configure distinct is false. I want the “campuses” results are distinct, and “majors” results aren’t distinct.


Hi @maukuliah,

Indeed, it is not possible to use this multi-index search syntax to run two separate queries in the same index.

If you would like to run two different queries on the same data, you could create a replica of the first index and run the second search in the replica:

Let us know how it goes!