# Indexing whole collection? What?

**URL:** <https://discuss.elastic.co/t/indexing-whole-collection-what/13197>\
**Category:** Elasticsearch\
**Created:** [August 13, 2013, 11:48am UTC](https://discuss.elastic.co/t/indexing-whole-collection-what/13197 "2013-08-13T11:48:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Janusz\_Dalecki](https://avatars.discourse-cdn.com/v4/letter/j/73ab20/32.png) [@Janusz\_Dalecki](https://discuss.elastic.co/u/Janusz_Dalecki)\
**Post date:** [August 13, 2013, 11:48am UTC](https://discuss.elastic.co/t/indexing-whole-collection-what/13197/1 "2013-08-13T11:48:53Z")

</div>

Hi,

I have indexed my Asset collection using command like this:

# Create river for Asset collection

[http://localhost:9200/\_river/asset\_river/\_meta](http://localhost:9200/_river/asset_river/_meta) -d '{

"type": "mongodb",

"mongodb": {

```
 "db": "my_database",

 "collection": "Asset"

```

},

"index": {

```
 "name": "asset_index",

 "type": "Asset"

```

}

}'

I think that indexes all columns of every document in the whole collection.  
Does it make sense to index the whole collection – because if I understand  
well this will create as many indexes as columns in the entire collections  
and it might be pretty slow to retrieve the data?

Regards,  
Janusz

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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 6, 2017, 2:21am UTC](https://discuss.elastic.co/t/indexing-whole-collection-what/13197/2 "2017-07-06T02:21:21Z")

</div>

Closed on July 6, 2017, 2:21am UTC


