sentry-docs icon indicating copy to clipboard operation
sentry-docs copied to clipboard

Search doesn't prioritize results in current scope

Open mattjohnsonpint opened this issue 3 years ago • 1 comments

Steps to Reproduce

This is just an example:

  1. Go to https://docs.sentry.io/platforms/dotnet/
  2. In the search box, type AttachStackTrace
  3. Observe the results

Expected Result

Since I am searching from

Home > Platforms > .NET

... The first result should go to the AttachStackTrace property documentation under

Home > Platforms > .NET > Configuration > Basic Options

Which is here: https://docs.sentry.io/platforms/dotnet/configuration/options/#attach-stacktrace

Actual Result

The first result is to the copy of this doc that is for the ASP.NET Core integration under

Home > Platforms > .NET > ASP.NET Core > Configuration > Basic Options

Thus, clicking it takes me out of the docs section I was already in, and into a different section. Sometimes it's the section I want, but sometimes it's completely irrelevant. Now when I go look for other things, I have to go back to the main docs. The context switch is jarring.

Also notice that the second and third items in the search results go to docs for completely different languages (PHP and Go). This seems weird. I would expect either to see other results within the section I'm already at, or maybe some cross-site result from sentry-basics or developer docs, but results from other languages should be deprioritized.

image

Additional Info

No response

mattjohnsonpint avatar Jun 03 '22 20:06 mattjohnsonpint

This isn't urgent, just wanted to report it somewhere so that it can be eventually addressed.

mattjohnsonpint avatar Jun 03 '22 20:06 mattjohnsonpint