# 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:** 13

<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 12, 2020, 9:31am UTC](https://discuss.elastic.co/t/not-able-to-index-documents-using-app-search-7-6-1/222893/13 "2020-03-12T09:31:46Z")

</div>

```auto
- name: Install elasticsearch
  hosts: kombare_es
  roles:
    - role: elastic.elasticsearch
  vars:
    es_enable_xpack: true
    es_version: 7.6.1
    es_heap_size: 4g
    es_enable_http_ssl: true
    es_api_basic_auth_username: elastic
    es_api_basic_auth_password: changme
    es_ssl_keystore: "files/certs/my-keystore.p12"
    es_ssl_truststore: "files/certs/ca-public-private.p12"
    es_validate_certs: no
    es_config:
      # network.host: 0.0.0.0
      # network.publish_host: 0.0.0.0
      network.host: 127.0.0.1
      network.publish_host: 127.0.0.1
     # http.port: 8001
      node.name: e1
# cluster.initial_master_nodes:
# - kombare-es.com
      discovery.type: single-node
      http.cors.enabled: true
      http.cors.allow-origin: "*" # todo make it specific
      xpack:
        security:
          authc:
            realms:
              native:
                native1:
                  order: 0

  become: yes

  tasks:
    - name: add nginx server config
      import_tasks: _elasticsearch_nginx.yml
      tags: nginx

```

I am using official ansible playbook: [https://github.com/elastic/ansible-elasticsearch](https://github.com/elastic/ansible-elasticsearch)

is the issue related to nginx? is this topic related [Issue with app search (download) release -- not quite a connection issue](https://discuss.elastic.co/t/issue-with-app-search-download-release-not-quite-a-connection-issue/191249) ?

Following this article I moved the app search to the same server - to communicate with elasticsearch directly without nginx reverse proxy- and changed app-search.yml to

```auto
allow_es_settings_modification: true
elasticsearch.username: "{{ elasticsearch_username }}"
elasticsearch.password: "{{ elasticsearch_password }}"
elasticsearch.ssl.enabled: true
elasticsearch.ssl.verify: false
app_search.external_url: https://localhost:9200
app_search.auth.source: elasticsearch-native

```

then I was this error:

```auto
unable to find valid certification path to requested target 

```

even when

```auto
elasticsearch.ssl.verify: false

```

@orhantoy

---

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