• When highlighting text and adding a link, when you search, it prioritises attachments instead of posts.

    It uses to show relevant posts first. It has become impossible to find posts to link to, now.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Moderator bcworkz

    (@bcworkz)

    I don’t think it’s really “prioritizing” per se, rather it’s listing whichever data comes back first. Separate API search requests are made for posts, terms, formats, and media. If searching for posts takes a long time, media results could come back first and thus get listed first.

    I’m completely speculating based on observation of behavior on my site. I don’t have a lot of posts, so that query doesn’t take so long. I see post results first. You should be able to see that posts are queried first by examining API requests logged in your browser’s network developer tool.

    If this is indeed what’s happening, I’m afraid there’s not a good solution. The link search script would need to be overwritten to have it wait for post results before continuing on to the others. This would significantly increase the time needed to get full results.

    As @bcworkz mentioned, there isn’t a good solution at the moment. There is an open GitHub issue regarding the modification of link query results, though no current timeline for implementation.

    Thread Starter gizmo2501

    (@gizmo2501)

    I guess the difference I am noticing is a couple of weeks ago, it would always bring back posts first, and now it brings back images. So I feel like some change was pushed.

    The most recent work on this was undertaken in https://github.com/WordPress/gutenberg/pull/67367 which has not yet been released in the Gutenberg Plugin.

    That change would prioritise exact search matches which could in theory lead to Attachments being prioritised over Posts (for example).

    We could weight slightly towards Posts in general search.

    I have raised an Issue and we can discuss there

    https://github.com/WordPress/gutenberg/issues/67561

    Thread Starter gizmo2501

    (@gizmo2501)

    Thanks for that! I feel like Posts are a good thing to weight to, as I imagine they are the most likely thing to be linked to (and Pages).

    Thanks for looking at that.

    I noticed this as soon as I updated to 6.7.1. It’s very annoying because–and surely I can’t be the only one–when I use the link tool it’s for internal linking to other posts. Now I have to wade through a mountain of attachments and tags to get to the posts.

    I rolled back to 6.7 and it went away. Then updated to 6.7.1 and the issue started. So this was something pushed out in 6.7.1.

Viewing 6 replies - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.