Skip to content

Conversation

leemthompo
Copy link
Contributor

@leemthompo leemthompo commented Aug 22, 2025

closes https://github.com/elastic/docs-content-internal/issues/201

Restructured content flow - Moved duplicate heading, consolidated sections into logical workflow steps
Added step-by-step workflow - Organized synonyms usage into 4 clear steps: create rules and sets → configure analyzers → test → apply
Enhanced synonym rule documentation - Added detailed explanation of explicit mappings vs equivalent synonyms with examples
Added Kibana UI method - New section documenting UI-based synonym management (serverless only)
Improved method organization - Restructured storage options as numbered methods (UI, REST API, File-based, Inline)
Added warning context - Enhanced warnings about synonym rule errors and their impact
Clarified search-time limitation - Added note that API/UI-created synonym sets only work at search time

@leemthompo leemthompo self-assigned this Aug 22, 2025
Copy link

github-actions bot commented Aug 22, 2025

🔍 Preview links for changed docs

@leemthompo leemthompo changed the title Update Synonyms page, mention UI option [WIP] Update Synonyms page, mention UI option Aug 22, 2025
link fixes:
updated custom bundle link to external path
fixed api examples link to dedicated page
content improvements:
clarified step 2 description for analyzer configuration
enhanced expand parameter explanation with bidirectional vs canonical mapping examples
removed redundant phrases and improved conciseness
fixed spacing in synonym file examples
reorganized token filter section for better flow
streamlined synonym rules introduction
@leemthompo leemthompo requested a review from a team August 25, 2025 14:53
Copy link
Member

@kderusso kderusso left a comment

Choose a reason for hiding this comment

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

Overall changes LGTM for structure and API. Left a few comments, will defer to @efegurkan for UI feedback


There are two main formats for synonym rules:

**Explicit mappings** use `=>` to specify exact replacements:
Copy link
Member

Choose a reason for hiding this comment

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

Do we want to drive the point home here, where sea biscuit will be mapped to seabiscuit but seabiscuit will not be mapped to sea biscuit, but that ipod maps to i-pod and i-pod maps to ipod?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Synonyms are grouped together using **synonyms sets**. You can have as many synonyms sets as you need.
You have multiple options for creating synonym sets and rules.

### Synonym rule formats
Copy link
Member

Choose a reason for hiding this comment

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

It's a little odd placement here to say "This is how you create synonyms sets" and then go into the format definitions. Maybe this could come above the step by step instructions?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Agreed — moved in af28c81

@leemthompo leemthompo marked this pull request as ready for review August 26, 2025 11:47
@leemthompo leemthompo requested a review from a team as a code owner August 26, 2025 11:47
Copy link
Member

@kderusso kderusso left a comment

Choose a reason for hiding this comment

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

LGTM!

sea biscuit, sea biscit => seabiscuit
```

With explicit mappings, the relationship is one-way. In the previous examples:
Copy link
Member

Choose a reason for hiding this comment

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

👍

Copy link
Contributor

@marciw marciw left a comment

Choose a reason for hiding this comment

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

"tech writer edit" 😉 though not super thorough


Your synonyms sets need to be stored in {{es}} so your analyzers can refer to them. There are three ways to store your synonyms sets:
1. Navigate to **Elasticsearch** > **Synonyms** or use the [global search field](/explore-analyze/query-filter/filtering.md#_finding_your_apps_and_objects)
Copy link
Contributor

Choose a reason for hiding this comment

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

I think our style rule is to include terminal punctuation if the list item is a complete sentence -- also item 5 does have a terminal period but the others don't

Copy link
Contributor Author

Choose a reason for hiding this comment

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

this was a test and you passed Marci 👍 😄


To use synonyms in {{es}}, you need to follow this workflow:

1. **Create synonym sets and rules** - Define which terms are equivalent and where to store your synonym sets
Copy link
Contributor

Choose a reason for hiding this comment

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

Add terminal punctuation to these list items; also I'd do colons after the bold labels, instead of hyphens/dashes

Copy link
Contributor Author

Choose a reason for hiding this comment

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

💯 thx

Copy link
Contributor

@marciw marciw left a comment

Choose a reason for hiding this comment

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

meant to approve w/ suggestions

@leemthompo leemthompo enabled auto-merge (squash) August 26, 2025 14:42
@leemthompo leemthompo merged commit 85eccf4 into main Aug 26, 2025
6 checks passed
@leemthompo leemthompo deleted the leemthompo/synonyms-ui branch August 26, 2025 14:44
@leemthompo leemthompo changed the title [WIP] Update Synonyms page, mention UI option Update Synonyms page, mention UI option Aug 26, 2025
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.

3 participants