Skip to content
This repository has been archived by the owner on May 28, 2024. It is now read-only.

Anchor links in search results - can we and should we? #5846

Open
thepegisin opened this issue Dec 30, 2021 · 10 comments
Open

Anchor links in search results - can we and should we? #5846

thepegisin opened this issue Dec 30, 2021 · 10 comments
Assignees
Labels
enhancement New feature or request Feature Request Requires Design, Content, and Dev input Tech Technology and Development Track

Comments

@thepegisin
Copy link
Collaborator

thepegisin commented Dec 30, 2021

Can we make it so that anchors come up in search?

Example: If we posted a section on the Testing page with the header (and anchor) "When to isolate or quarantine," and someone searches on "quarantine," it would be great if the top search result was When to isolate or quarantine with a link to that page section.

Or is that making things too complicated, and if we want something to be an obvious search result, we need to make it a page? I know this team can do anything, just wondering if this is both possible and advisable.

@thepegisin thepegisin added enhancement New feature or request Feature Request Requires Design, Content, and Dev input Tech Technology and Development Track labels Dec 30, 2021
@aaronhans
Copy link
Contributor

The slack conversation on this seemed like we were talking about a quick answer. This is pretty easy to handle there. Were you interested in this being part of the main search results section instead of quick answers @thepegisin? That is more complex

@thepegisin
Copy link
Collaborator Author

Yes, instead of quick answers. I know we have elevated quick answers in search to appear first, and I understand why, but that's actually problematic. In content design, we put the most important and most-needed content in body text, and put content that affects fewer people in FAQs. But then we elevate those FAQs to the top in search. So if someone searches on "quarantine," the best answer for how to quarantine doesn't appear first (the Testing page), it appears after FAQs that describe finer details like what paid leave you can expect.

Even if the Testing page did appear first in a search on "quarantine," it's likely not obvious that this is a good answer. So it would be great if a search on "quarantine" brought up an anchor link named "When to isolate or quarantine."

@aaronhans
Copy link
Contributor

Great points about quick answers getting in the way @thepegisin. I believe @jaredwyee has the search initiative on his plate. We may need to switch search engine providers to fix this(We have access to several via Azure/AWS). There is also a CDT initiative to improve search @rkojik is heading, we could see if he has new tools for us. cc @jbum

@jaredwyee
Copy link

@aaronhans I'm not working on search

@aaronhans
Copy link
Contributor

aaronhans commented Jan 6, 2022

I checked in with CDT search folks and they didn't have any quick fixes. Tagging @mediajunkie on this because the point that current implementation of quick answers is not optimal is important. Will let product team drive this so we can get feedback to determine optimal engineering approach.

@aaronhans aaronhans assigned mediajunkie and unassigned aaronhans and thepegisin Jan 6, 2022
@aaronhans
Copy link
Contributor

Would it be better to move quick answers below the main search results?

@aaronhans
Copy link
Contributor

We could create two separate quick answers datasets, one which is more general and then one we put at the bottom which is more specific FAQs. We can also test different main content search tools

@thepegisin
Copy link
Collaborator Author

We could try putting quick answers under main search results, but they should still appear on the first page, IMHO. Maybe after the first 5 results? Or the first 2?

@mediajunkie
Copy link

I'm happy to try either!

First, is there something we can benchmark to capture the problem (user feedback where it's clear the Q/A distracted them from the main point, etc.), so when we try changing it, after a while we can check or measure it again to see if the problem got better?

@rkojik
Copy link

rkojik commented Jan 8, 2022

The creative (maybe not-so creative... maybe even crazy...) way I would've done this if I had pages... created a blank one with a server-side-include redirect to the page/anchor. Though, this would require that SSI redirect page be linked to somewhere in content so that Google crawls it.

[And by blank, I mean it still has a title, any meta, and potentially a heading / paragraph so that search engine results use that content... though this is a little bit of extra maintenance--if the real page is updated, this page might need updating as well]

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request Feature Request Requires Design, Content, and Dev input Tech Technology and Development Track
Projects
None yet
Development

No branches or pull requests

5 participants