# Missing indexed documents (php api)

**URL:** <https://discuss.elastic.co/t/missing-indexed-documents-php-api/1711>\
**Category:** Elasticsearch\
**Created:** [June 2, 2015, 12:11pm UTC](https://discuss.elastic.co/t/missing-indexed-documents-php-api/1711 "2015-06-02T12:11:09Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![atur](https://avatars.discourse-cdn.com/v4/letter/a/f17d59/32.png) [@atur](https://discuss.elastic.co/u/atur)\
**Post date:** [June 2, 2015, 12:11pm UTC](https://discuss.elastic.co/t/missing-indexed-documents-php-api/1711/1 "2015-06-02T12:11:09Z")

</div>

I have the problem that not all documents (1300000) are indexed when using the php api (1.0).  
It dosent matter if I use the bulk or the single index function.  
I have set the loglevel to:  
Psr\Log\LogLevel::INFO

But there is no message in the logfile about rejected documents. There are about 400000 not indexed documents.

The queue\_size of elasticsearch (1.5.2) is set to 2000.

What is going wrong? And how can I debug this?

Thanks,  
Armand

---

<div class="post-metadata">

**Author:** ![atur](https://avatars.discourse-cdn.com/v4/letter/a/f17d59/32.png) [@atur](https://discuss.elastic.co/u/atur)\
**Post date:** [June 2, 2015, 2:08pm UTC](https://discuss.elastic.co/t/missing-indexed-documents-php-api/1711/2 "2015-06-02T14:08:44Z")

</div>

Problem solved. It wasnt the problem of es but the script i wrote. Sorry for the nonsense posting.

---

<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:** [June 3, 2015, 12:23pm UTC](https://discuss.elastic.co/t/missing-indexed-documents-php-api/1711/3 "2015-06-03T12:23:58Z")

</div>

Glad you got it sorted 🙂

---

<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, 12:09am UTC](https://discuss.elastic.co/t/missing-indexed-documents-php-api/1711/4 "2017-07-06T00:09:58Z")

</div>


