Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Site: Prioritise search results on agones.dev better #1327

Closed
aLekSer opened this issue Feb 7, 2020 · 3 comments · Fixed by #1395
Closed

Site: Prioritise search results on agones.dev better #1327

aLekSer opened this issue Feb 7, 2020 · 3 comments · Fixed by #1395
Labels
area/site The website itself - including redirects, styling, search, etc kind/feature New features for Agones
Milestone

Comments

@aLekSer
Copy link
Collaborator

aLekSer commented Feb 7, 2020

Is your feature request related to a problem? Please describe.
When I make a query to search for the documentation page which contains, for example, "metrics", I receive pages from old version website or not explaining the topic:

https://0-8-0.agones.dev/.../0.7.0-latency-measuring-fleet-autoscaling- webhooks-and-metrics/
https://agones.dev/site/docs/installation/install-agones/helm/
https://0-8-0.agones.dev/site/docs/guides/metrics/

But no current version on the first page:

https://agones.dev/site/docs/guides/metrics/

This happens both on search by Relevance and by Date.

Describe the solution you'd like
I want to get https://agones.dev/site/docs/guides/metrics/
at the top and all 0-8-0.agones.dev skipped or at the bottom.
https://performance.agones.dev this subdomain should be skipped also (https://performance.agones.dev/site/docs/guides/client-sdks/local/)

Describe alternatives you've considered
Skip or deprioritise all previous version pages.

Additional context
Sort

  1. By date SortByDate
  2. By Relevance:

SortByRelevance

@aLekSer aLekSer added the kind/feature New features for Agones label Feb 7, 2020
@aLekSer
Copy link
Collaborator Author

aLekSer commented Feb 12, 2020

I have played a bit with Custom Search Engine. It seems that we need to add and upload annotations for every old subdomain used and do this with previous release version website also say 1-2-0.agones.dev.
https://developers.google.com/custom-search/docs/annotations?hl=en
We can use either score for better ranking:

  <Annotation about="*.agones.dev/site/blog/*" score="0.05">
    <Label name="_cse_dhl4jwcqxxx"/>
  </Annotation>

or exclude completely the subdomain:

  <Annotation about="0-8-0.agones.dev/site/*">
    <Label name="_cse_exclude_dhl4jwcxxx"/>
  </Annotation>

this way we would get result from current release version first:
Agones Custom Search Way to enhance

This XML file should be uploaded here https://cse.google.com/cse/setup/advanced?cx= <gcs_engine_id>

@markmandel
Copy link
Member

I'm not sure where the original GCSE was setup, but I created a new one here:
https://cse.google.com/cse?cx=016691298986124624340:x7qv2dywdao

Just need to update the Config.toml post release to use this version.

@aLekSer
Copy link
Collaborator Author

aLekSer commented Mar 5, 2020

The new one is configured much better and will close this issue.

markmandel added a commit to markmandel/agones that referenced this issue Mar 5, 2020
@markmandel markmandel added this to the 1.5.0 milestone Apr 7, 2020
@markmandel markmandel added the area/site The website itself - including redirects, styling, search, etc label Apr 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/site The website itself - including redirects, styling, search, etc kind/feature New features for Agones
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants