Skip to content

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

@xmrsa

Description

@xmrsa

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions