💻 Environment/Context
- Tag search
- Media library
- Tag
❓ Issue/Question
- When searching for a tag by typing its exact name (e.g., "Stadium"), the suggestions show other tags that merely contain that word (e.g., "Cardiff Stadium") ahead of the exact-match tag, and only a limited number of suggestions appear with no scrolling.
- Why isn't the exact match for the tag search shown first, but instead the system shows other tags containing the main tag name?
👌 Resolution/Answer
- This is the current expected behaviour. Tag search uses "contains" matching, and suggestions are ordered by how much media each tag has (not by the closeness of the match).
- Only up to six tag suggestions are displayed, and that list does not scroll, so an exact-match tag with less media can be pushed down or off the visible list.
- Workaround: Add the tag to a Category and use the Category filter to filter media directly by that tag.
🥚 Cause
- Tag suggestions rank by associated media volume rather than exact/prefix match, and the suggestion list is capped at six with no scroll. As a result, a direct exact-match tag is not guaranteed to appear at the top when other tags contain the same word and have more media.