# How does elasticsearch indexing handle repititions?

**URL:** <https://discuss.elastic.co/t/how-does-elasticsearch-indexing-handle-repititions/212541>\
**Category:** Elasticsearch\
**Created:** [December 19, 2019, 6:21pm UTC](https://discuss.elastic.co/t/how-does-elasticsearch-indexing-handle-repititions/212541 "2019-12-19T18:21:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![hjiop\_oop](https://avatars.discourse-cdn.com/v4/letter/h/ed8c4c/32.png) [@hjiop\_oop](https://discuss.elastic.co/u/hjiop_oop)\
**Post date:** [December 19, 2019, 6:21pm UTC](https://discuss.elastic.co/t/how-does-elasticsearch-indexing-handle-repititions/212541/1 "2019-12-19T18:21:36Z")

</div>

Say I have two entries:

{'a':100,'b':'2000 aba'}  
{'a':100,'b':'2000 aba'}

and I index them and then do a search over elasticsearch for all '2000 aba' in field 'b', will the repetitions show?

will both the entries show up or only one?

hj

---

<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:** [December 19, 2019, 6:39pm UTC](https://discuss.elastic.co/t/how-does-elasticsearch-indexing-handle-repititions/212541/2 "2019-12-19T18:39:23Z")

</div>

> [@hjiop\_oop](#):
>
> will both the entries show up or only one?

Both.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [January 16, 2020, 6:39pm UTC](https://discuss.elastic.co/t/how-does-elasticsearch-indexing-handle-repititions/212541/3 "2020-01-16T18:39:27Z")

</div>

Closed on January 16, 2020, 6:39pm UTC

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
