# ElasticSearch not indexing all the documents in MongoDB

**URL:** <https://discuss.elastic.co/t/elasticsearch-not-indexing-all-the-documents-in-mongodb/223254>\
**Category:** Elasticsearch\
**Created:** [March 12, 2020, 5:58am UTC](https://discuss.elastic.co/t/elasticsearch-not-indexing-all-the-documents-in-mongodb/223254 "2020-03-12T05:58:49Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![pankaj676](https://avatars.discourse-cdn.com/v4/letter/p/82dd89/32.png) [@pankaj676](https://discuss.elastic.co/u/pankaj676)\
**Post date:** [March 12, 2020, 5:58am UTC](https://discuss.elastic.co/t/elasticsearch-not-indexing-all-the-documents-in-mongodb/223254/1 "2020-03-12T05:58:49Z")

</div>

Hello everyone I am using elastic search with mongo-connector to sync data between MongoDB and Elastic Search. I have 22k documents in MogoDB, but once elastic search indexes 4.5k documents it stops indexing after that.  
I am using following command line in ubuntu to sync data :-

$ mongo-connector -m localhost:27017 -t localhost:9200 -d elastic2\_doc\_manager

My mongod.conf file  
 ![mongodconf](https://us1.discourse-cdn.com/elastic/original/3X/2/c/2c23a55dcd09a93faa2fb2308739ffcd62e94296.png)

And one more doubt was regarding that if in my content is in some language which is not supported by elastic search search how elastic search will build its index, like stemming, tokenization etc

---

<div class="post-metadata">

**Author:** ![pankaj676](https://avatars.discourse-cdn.com/v4/letter/p/82dd89/32.png) [@pankaj676](https://discuss.elastic.co/u/pankaj676)\
**Post date:** [March 12, 2020, 6:01am UTC](https://discuss.elastic.co/t/elasticsearch-not-indexing-all-the-documents-in-mongodb/223254/2 "2020-03-12T06:01:34Z")

</div>

@dadoonet please help

---

<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:** [March 12, 2020, 6:10am UTC](https://discuss.elastic.co/t/elasticsearch-not-indexing-all-the-documents-in-mongodb/223254/3 "2020-03-12T06:10:30Z")

</div>

Read [this](https://discuss.elastic.co/t/about-the-elasticsearch-category/21) and specifically the "Also be patient" part.

It's fine to answer on your own thread after 2 or 3 days (not including weekends) if you don't have an answer.

Please do not ping people who are not yet involved in your thread. Thanks.

---

<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:** [March 12, 2020, 6:13am UTC](https://discuss.elastic.co/t/elasticsearch-not-indexing-all-the-documents-in-mongodb/223254/4 "2020-03-12T06:13:39Z")

</div>

About mongo connector, we did not write that piece of code so it's hard to help. You should probably ask on MongoDB forums.

That being said, may be there's an error message which could help?

About the question regarding elasticsearch, it's a bit vague. Could you be more specific? But may be you want to read this? [https://www.elastic.co/guide/en/elasticsearch/reference/current/analysis.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/analysis.html)

---

<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:** [April 9, 2020, 6:13am UTC](https://discuss.elastic.co/t/elasticsearch-not-indexing-all-the-documents-in-mongodb/223254/5 "2020-04-09T06:13:43Z")

</div>

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