Skip to content

Elasticsearch Connector#54

Merged
laskoviymishka merged 2 commits intocentralmind:mainfrom
kemalkochekov:elasticsearch
Mar 21, 2025
Merged

Elasticsearch Connector#54
laskoviymishka merged 2 commits intocentralmind:mainfrom
kemalkochekov:elasticsearch

Conversation

@kemalkochekov
Copy link
Copy Markdown
Contributor

@kemalkochekov kemalkochekov commented Mar 19, 2025

Implemented Elasticsearch connector with connector tests and checked with Gemini API key.

Contributor Agreement

By submitting this pull request, I affirm that:

  • I have reviewed, fully understand, and agree to abide by the terms of the Contributor License Agreement detailed in CONTRIBUTING.md.

Comment thread connectors/elasticsearch/connector.go Outdated
}

// replacePlaceholders replaces parameters in the "match" clause and other necessary fields
func replacePlaceholders(query map[string]any, params map[string]any) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is force to support only strng match parametrized-queries, maybe it's better to support instead of that a templated query?

{
					"query": {
						"match": {
							"job": ":${.job}"
						}
					}
				}

by utilize query := elastic.NewTemplateQuery("find_user_tpl") func?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@laskoviymishka laskoviymishka merged commit cc2ab3a into centralmind:main Mar 21, 2025
10 checks passed
@Gaploid Gaploid mentioned this pull request Mar 22, 2025
laskoviymishka pushed a commit that referenced this pull request Mar 25, 2025
* Implemented Elasticsearch connector with connector tests and checked with Gemini API key.

* Fixed elasticsearch's searching query from manual to template search.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants