# Indexing Criteria

**URL:** <https://discuss.elastic.co/t/indexing-criteria/33377>\
**Category:** Elasticsearch\
**Created:** [October 30, 2015, 2:22pm UTC](https://discuss.elastic.co/t/indexing-criteria/33377 "2015-10-30T14:22:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![codebump](https://avatars.discourse-cdn.com/v4/letter/c/48db29/32.png) [@codebump](https://discuss.elastic.co/u/codebump)\
**Post date:** [October 30, 2015, 2:22pm UTC](https://discuss.elastic.co/t/indexing-criteria/33377/1 "2015-10-30T14:22:57Z")

</div>

Hello,

I am working with twitter streaming api. and am a little confused about deciding the criteria for indexing the data. Right now I have a single index that contains all the tweets in one doc\_type and users in another doc type.

Is it the best way to go about storing them or should i create a new doc type for every category (category can be decided on basis of hashtag and tweet content)

What should be the best approach to storing such data?

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [October 31, 2015, 11:12pm UTC](https://discuss.elastic.co/t/indexing-criteria/33377/2 "2015-10-31T23:12:52Z")

</div>

What are you trying to achieve, is probably the better question to be asking.

---

<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:** [July 5, 2017, 11:41pm UTC](https://discuss.elastic.co/t/indexing-criteria/33377/3 "2017-07-05T23:41:30Z")

</div>

Closed on July 5, 2017, 11:41pm UTC


