# Using algolia with multiple indices

**URL:** <https://meta.discourse.org/t/using-algolia-with-multiple-indices/257338>\
**Category:** Product Support\
**Tags:** algolia-search\
**Created:** [March 7, 2023, 8:07am UTC](https://meta.discourse.org/t/using-algolia-with-multiple-indices/257338 "2023-03-07T08:07:16Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![M.Anderson](https://avatars.discourse-cdn.com/v4/letter/m/51bf81/32.png) [@M.Anderson](https://meta.discourse.org/u/M.Anderson)\
**Post date:** [March 9, 2023, 4:17pm UTC](https://meta.discourse.org/t/using-algolia-with-multiple-indices/257338/2 "2023-03-09T16:17:02Z")

</div>

Here is one example:  
**First index** is showing community-content, like we have now.  
**Second index** is showing external page. For each new index other then discourse we could show a new grouping. Maybe we could insert a list, which indices we would like to show on frontend to not use all existing ones available within search-API.

 ![image](https://global.discourse-cdn.com/meta/original/4X/b/7/8/b78cc3a251ca0547a82941eee313e673286bbf8f.png)

Maybe it is possible to reach such a goal using multiple indices. Algolia themselves are also having such a search, even with a preview.

 ![image](https://global.discourse-cdn.com/meta/original/4X/6/5/d/65d604fc2c6d2fe57271731528d6c5b5305fa980.png)

Algolia has a UI & UX Pattern for this using InstantSearch.js:

> **[Multi-index search - Algolia](https://www.algolia.com/doc/guides/building-search-ui/ui-and-ux-patterns/multi-index-search/js)**
>
> Searching multiple indices in your InstantSearch.js app.

So the question is: What can we offer right now with plugin discourse-algolia?

- Is it right now only able to use the three discourse-indices?
- Would it be a new feature to use other indices?
- Or do we need to manipulate existing discourse-index “discourse-posts” so it will also show “foreign entries”?

---

_[View the full topic](https://meta.discourse.org/t/using-algolia-with-multiple-indices/257338)._
