googleforgames/open-match-docs

Website Search doesn't return results

Opened this issue · 2 comments

What happened:

Searching for items on the https://open-match.dev website does not return results except in rare cases for very common words.

What you expected to happen:

Results matching the keywords should be returned.

How to reproduce it (as minimally and precisely as possible):

Search for a message type: https://open-match.dev/site/search/?q=AssignTicketsRequest

Anything else we need to know?:

Only titles seem to be searchable, e.g. https://open-match.dev/site/search/?q=Swagger

Output of kubectl version:

N/A

Cloud Provider/Platform (AKS, GKE, Minikube etc.):

N/A

Open Match Release Version:

1.12

Install Method(yaml/helm)::

N/A

Thanks for filing the issue. Moved to docs repository as it seems more relevant to file there.

Further info:

The Index page of the site appears to have the tag <META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW"> This is why Google is not indexing the site.

The reason it has that tag is because the theme has the following in head.html

{{ if eq (getenv "HUGO_ENV") "production" }}
<META NAME="ROBOTS" CONTENT="INDEX, FOLLOW">
{{ else }}
<META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW">
{{ end }}

It appears that Hugo is not running as a "production" build. I'm not really sure how to fix the Makefile, but the env var HUGO_ENV must be set to production to get indexing working based on the template.