Altinn / Altinn/altinn-studio-docs

Search-engine on docs.altinn.studio has unexpected results

Open
#2,367 0 comments 0 reactions 0 assignees View on GitHub
kind/bug
Dominant language
CSS
Stars
15
Forks
58
Avg merge
1d 11h
Merged PRs (30d)
53

Description

### Description of the bug

When searching for a very specific term/word on docs.altinn.studio, it presented a long list of unwanted "hits" from small parts of the word I was looking for. The "exact hit" was far down the list of the searches.

Image

Today (19/9-2025) it has suddenly changed its behaviour, because now I get NO hits for the same word.

Image

When I search for only "SSB" I can see that there is documentation for the phrase I was looking for.

Image

If I search for **"services.AddSSBClassificationCodelistProvider"** instead of **"AddSSBClassificationCodelistProvider"** it actually finds it right away. It seems like it is trying to find the **beginning** of the word first, in this case the "word" seems to start with "services". I tested searching for **"ategorisering",** and again it doesn't really find the word **"kategorisering"**, it mainly returns words starting with "at" like this:

Image

### Steps To Reproduce

1. Search for AddSSBClassificationCodelistProvider on docs.altinn.studio
or any other part of a word (except the beginning)

### Additional Information

See discussion on Slack: https://digdir-samarbeid.slack.com/archives/C02EJ9HKQA3/p1757667323727839

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the searches on docs.altinn.studio for "AddSSBClassificationCodelistProvider", "services.AddSSBClassificationCodelistProvider", and "ategorisering". Trace the documentation site's search entry point and identify the matching behavior; done means relevant exact or partial-word matches appear prominently without the reported unrelated results.

Written by the indexing model from the issue text.

Assessment

Domain
search
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.