# Not able to index documents using app search(7.6.1)

**URL:** <https://discuss.elastic.co/t/not-able-to-index-documents-using-app-search-7-6-1/222893>\
**Category:** Elastic Search\
**Tags:** elastic-app-search\
**Created:** [March 10, 2020, 9:24am UTC](https://discuss.elastic.co/t/not-able-to-index-documents-using-app-search-7-6-1/222893 "2020-03-10T09:24:10Z")\
**Posts on this page:** 1\
**Showing post:** 19

<div class="post-metadata">

**Author:** ![Jaaved\_Ali\_Khan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jaaved_ali_khan/32/60089_2.png) [@Jaaved\_Ali\_Khan](https://discuss.elastic.co/u/Jaaved_Ali_Khan)\
**Post date:** [March 20, 2020, 3:05pm UTC](https://discuss.elastic.co/t/not-able-to-index-documents-using-app-search-7-6-1/222893/19 "2020-03-20T15:05:59Z")

</div>

@JasonStoltz @orhantoy finally I was able resolve this issue.

The reason for the issue was nginx reverse proxy, I moved the both elasticsearch and app search to same machine and connected app-search to elasticsearch directly, `https://localhost:9200`

This configuration worked:

```auto
elasticsearch.host: " https://127.0.0.1:9200"
elasticsearch.ssl.enabled: true
elasticsearch.ssl.certificate_authority: "{{ ssl_certs_dir_path }}/ca.crt"
elasticsearch.ssl.verify: true

```

I think the bug here is, when using `elasticsearch.ssl.verfiy= false` , app search was still verifying server public certificate using default trust store of java. I made `elasticsearch.ssl.verfiy= true` pointing to the CA and it worked; I described the issue here: [App search not able to connect to elasticsearch directly over https](https://discuss.elastic.co/t/app-search-not-able-to-connect-to-elasticsearch-directly-over-https/224070).

I spent lot of time on this, @orhantoy @JasonStoltz thanks for your help.

---

_[View the full topic](https://discuss.elastic.co/t/not-able-to-index-documents-using-app-search-7-6-1/222893)._
