# ES Reader

An Elasticsearch reader component is designed to read and access data stored in an Elasticsearch index. Elasticsearch readers typically authenticate with Elasticsearch using username and password credentials, which grant access to the Elasticsearch cluster and its indexes.

## Elastic Search Reader

All component configurations are classified broadly into the following sections:

* [​Basic Information​](/data-pipeline-2/components/component-base-configuration.md)​
* Meta Information
* [Resource Configuration​](/data-pipeline-2/components/resource-configuration.md)​
* ​[Connection Validation](https://docs.bdb.ai/7.6/data-pipeline/components/connection-validation)​

{% hint style="success" %}
Please follow the given demonstration to configure the component.
{% endhint %}

{% embed url="<https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fuq3RSHHup7fjHYaspk7y%2Fuploads%2FXPSeyjZJFkZqvjBmCQDr%2FES_Reader_AdobeExpress.mp4?alt=media&token=dfcc0ad1-5ad7-4f85-916d-efb67ec0ece5>" %}

### Configuring the Meta Information Tab  <a href="#configuring-the-over-all-meta-information-tab-fields" id="configuring-the-over-all-meta-information-tab-fields"></a>

* **Host IP Address:** Enter the host IP Address for Elastic Search.
* **Port:** Enter the port to connect with Elastic Search.
* **Index ID:** Enter the Index ID to read a document in **Elasticsearch**. \
  In Elasticsearch, an index is a collection of documents that share similar characteristics, and each document within an index has a unique identifier known as the index ID. The index ID is a unique string that is automatically generated by Elasticsearch and is used to identify and retrieve a specific document from the index.
* **Resource Type:** Provide the resource type.\
  In **Elasticsearch**, a resource type is a way to group related documents together within an index. Resource types are defined at the time of index creation, and they provide a way to logically separate different types of documents that may be stored within the same index.
* **Is Date Rich True:** Enable this option if any fields in the reading file contain date or time information.\
  The ***date rich*** feature in Elasticsearch allows for advanced querying and filtering of documents based on date or time ranges, as well as date arithmetic operations.
* **Username:** Enter the username for elastic search.
* **Password:** Enter the password for elastic search.
* **Query:** Provide a spark SQL query.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.bdb.ai/data-pipeline-2/components/readers/es-reader.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
