๐Ÿ”ŒSetting up a ElasticSearch Connector

ElasticSearch connector

This connector is used to connect to an ElasticSearch source.

Data provider configuration

Fill in your connection details here (think about adding a host to get all necessary fields):

  • NAME: A meaningful name that will allow you to recognize the configured connector. mandatory

ElasticSearchHost

  • URL: The URL of your ElasticSearch server mandatory

  • PORT: The port number of your ElasticSearch server

  • SCHEME: The connection scheme to use (e.g., "http" or"https"). mandatory

  • USERNAME: The username to use for the authentication (if required)

  • PASSWORD: The password for the authentication (if required)

  • HEADERS: this field allows you to specify a dictionary of additional HTTP headers in the requests. It defaults to None, meaning that no additional headers are included by default.

The purpose of including headers in your Elasticsearch configuration could vary, but some common use cases include:

  1. Authorization: If your Elasticsearch server requires specific authorization headers, you can include them here.

  2. Content-Type: You might include headers specifying the content type of the request, such as "application/json" if your queries are in JSON format.

  3. Custom Headers: Any other custom headers that your Elasticsearch server might expect for specific functionalities or integrations.

Once youโ€™re done, hit the SAVE button.

Data source configuration

Letโ€™s configure your first query.

Start by clicking on the ADD A QUERY button in your connector:

Then, fill out the required fields:

  • SearchMethod: Select wether โ€œsearchโ€ or โ€œmsearchโ€ (for multiple search)

  • Index: Type the index of your ElasticSearch from which you want to extract data

  • Configuration type: select โ€œType 1โ€

  • Body: enter your query within a Json format (see an example below)

Last updated