# Elastic Index not indexing all documents in MongoDB

**URL:** <https://discuss.elastic.co/t/elastic-index-not-indexing-all-documents-in-mongodb/209721>\
**Category:** Elasticsearch\
**Created:** [November 27, 2019, 3:50pm UTC](https://discuss.elastic.co/t/elastic-index-not-indexing-all-documents-in-mongodb/209721 "2019-11-27T15:50:43Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![crak-mmarcoux](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/crak-mmarcoux/32/46017_2.png) [@crak-mmarcoux](https://discuss.elastic.co/u/crak-mmarcoux)\
**Post date:** [November 27, 2019, 3:50pm UTC](https://discuss.elastic.co/t/elastic-index-not-indexing-all-documents-in-mongodb/209721/1 "2019-11-27T15:50:43Z")

</div>

Hi!

I have a Nuxeo solution that includes Elastic + MongoDB.  
I have a table in my MongoDB that has around 400k items/documents in it.

When performing re-index, it only index 20000 items instead of 400k.  
Can someone help me on this?  
Could Mapping be the issues?

Thanks  
Math

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [November 27, 2019, 4:07pm UTC](https://discuss.elastic.co/t/elastic-index-not-indexing-all-documents-in-mongodb/209721/2 "2019-11-27T16:07:41Z")

</div>

I'd definitely ask Nuxeo team for support.

---

<div class="post-metadata">

**Author:** ![crak-mmarcoux](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/crak-mmarcoux/32/46017_2.png) [@crak-mmarcoux](https://discuss.elastic.co/u/crak-mmarcoux)\
**Post date:** [November 27, 2019, 6:50pm UTC](https://discuss.elastic.co/t/elastic-index-not-indexing-all-documents-in-mongodb/209721/3 "2019-11-27T18:50:05Z")

</div>

Hey @dadoonet  
Thanks for the reply

Can I ask you something ..  
I tried to use transporter to migrate my stuff from mongodb to elastic and I have these errors : `Rejecting mapping update to [nuxeo] as the final mapping would have more than 1 type: [default, doc]"`  
This could cause my stuff to not being indexed properly right?

Using Elastic 6.5.1

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [November 28, 2019, 11:34am UTC](https://discuss.elastic.co/t/elastic-index-not-indexing-all-documents-in-mongodb/209721/4 "2019-11-28T11:34:53Z")

</div>

> This could cause my stuff to not being indexed properly right?

Yes. That's true.

You already have an index `nuxeo` which has an existing type and you are trying to add documents using another type name which is not possible anymore from 6.x.

---

<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:** [December 26, 2019, 11:34am UTC](https://discuss.elastic.co/t/elastic-index-not-indexing-all-documents-in-mongodb/209721/5 "2019-12-26T11:34:56Z")

</div>

Closed on December 26, 2019, 11:34am UTC

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