# How to store percolate queries and documents

**URL:** <https://discuss.elastic.co/t/how-to-store-percolate-queries-and-documents/154438>\
**Category:** Elasticsearch\
**Created:** [October 29, 2018, 12:40pm UTC](https://discuss.elastic.co/t/how-to-store-percolate-queries-and-documents/154438 "2018-10-29T12:40:11Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Bernt\_Rostad](https://avatars.discourse-cdn.com/v4/letter/b/3ab097/32.png) [@Bernt\_Rostad](https://discuss.elastic.co/u/Bernt_Rostad)\
**Post date:** [October 29, 2018, 1:01pm UTC](https://discuss.elastic.co/t/how-to-store-percolate-queries-and-documents/154438/2 "2018-10-29T13:01:54Z")

</div>

> [@psylone](#):
>
> store documents and queries inside a single index.

No, this isn't possible since the percolator index must be of type "percolator". Store percolator queries and documents in separate indices.

> [@psylone](#):
>
> **Another option is to store percolate queries in the different index** , but in this case we should also place the same mapping as we use in the index for our documents, and it may be not easy to maintain these mappings in both indices: for documents and percolate queries.

Yes, you can and should use the same mapping for both, see [this forum thread](https://discuss.elastic.co/t/percolator-in-elasticsearch-6/150987) for how to do this.

---

_[View the full topic](https://discuss.elastic.co/t/how-to-store-percolate-queries-and-documents/154438)._
