Skip to content

Conversation

@cotti
Copy link
Contributor

@cotti cotti commented Oct 22, 2025

This PR introduces synonyms.yml to standardize synonym declarations. The values within are parsed and sent to ElasticsearchMarkdownExporter, which performs a PUT request to _synonyms/{setName}.

cotti added 2 commits October 22, 2025 04:21
# Conflicts:
#	src/Elastic.Markdown/Exporters/Elasticsearch/ElasticsearchMarkdownExporter.cs
@@ -0,0 +1,24 @@
synonyms:
- ".net,.NET,c#,csharp,dotnet,net,NET,DOTNET"
Copy link
Member

Choose a reason for hiding this comment

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

I'm a bit torn on this.

I understand that it was easier to use , as a delimiter instead of having a 2d list here.

I'm a bit worried that this will be prone to undetected errors.

What are your thoughts on this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hmm... If it has a parsing error, it would be loud.

But in general, I don't have a strong feeling one way or the other. I imagined this file won't be manipulated nearly as much outside from people involved in looking at the dashboards.

It would be better for this branch's CI to create a quick PR with just the file, so maybe I could update it already.

Copy link
Member

Choose a reason for hiding this comment

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

SGTM. your call

Copy link
Member

@Mpdreamz Mpdreamz Oct 22, 2025

Choose a reason for hiding this comment

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

Using commas currently also mimics how synonyms are stored historically in synonym text files. I kinda like it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

sees comment just after changing it

Copy link
Member

@Mpdreamz Mpdreamz left a comment

Choose a reason for hiding this comment

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

One mini nitpick

@cotti cotti requested a review from Mpdreamz October 22, 2025 13:22
@github-actions
Copy link

github-actions bot commented Oct 22, 2025

🔍 Preview links for changed docs

@cotti cotti marked this pull request as ready for review October 22, 2025 15:08
@cotti cotti requested review from a team as code owners October 22, 2025 15:09
@cotti cotti merged commit 6a86bc4 into main Oct 22, 2025
22 checks passed
@cotti cotti deleted the feature/synonyms_as_code branch October 22, 2025 17:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants