Skip to content

Improve relevance and ordering of search results in Link UI and Navigation block #38121

@annezazu

Description

@annezazu

Update: I've revised this Issue to be focused on the relevance of the search results. I've spun out other concerns into a separate Issue.

In summary the Post search results shown are sometimes counterintuitive and we may need to refine the REST API search endpoint to improve this.

Original Issue description

What problem does this address?

This week, Anna Morris shared the following feedback in the FSE Outreach Program's channel:

But mainly, selecting what page to add feels really hard. So, finding the News page (for a client site) for example took ages, it brings up everything with News in. If I wasn't totally sure of the name of a page (actually it was called "blog" I actually had to go and find the page and check, and come back and search. I've never had to do that before. I think there's something with the hirachy of info it shows that's off maybe? Also not being able to go... well it's a page... what pages do I have in a list (like before) is somehow hard for me cognitively perhaps. Finally, all that info of listing pages/posts/cateogries etc with the seached term in in a little dropdown thing was hard, it's fiddly and small and exhausting

At the core of this is the experience of what appears upon searching for something to add to the navigation block. Right now, it's a bit odd what's displayed. Here are two very simple examples:

I search for "test" and "testing duotone" comes up before the post actually titled "test":

Screen Shot 2022-01-20 at 7 02 28 PM

I search for "contact" and the one with the worse permalink (/contact-2) appears first:

Screen Shot 2022-01-20 at 7 03 09 PM

It seems we might be overly biasing for recently updated rather than name matches?

What is your proposed solution?

I'm not quite sure! This is too high level and obvious to say but add more granularity to the search functionality. I imagine this problem will likely ease when one can bulk add items/see more at once: #31667

Metadata

Metadata

Assignees

Labels

[Block] NavigationAffects the Navigation Block[Feature] Link EditingLink components (LinkControl, URLInput) and integrations (RichText link formatting)[Status] In ProgressTracking issues with work in progress[Type] FeedbackIssues that relate purely to feedback on a feature that isn't necessarily actionable

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions