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

Website Search doesn't return results #228

Open
highlyunavailable opened this issue Jun 2, 2021 · 2 comments
Open

Website Search doesn't return results #228

highlyunavailable opened this issue Jun 2, 2021 · 2 comments

Comments

@highlyunavailable
Copy link
Contributor

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

@syntxerror syntxerror transferred this issue from googleforgames/open-match Jun 2, 2021
@syntxerror
Copy link
Contributor

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

@highlyunavailable
Copy link
Contributor Author

highlyunavailable commented Jun 5, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants