# \#search

**URL:** https://discourse.gohugo.io/tag/search/90.md

[Latest](https://discourse.gohugo.io/latest.md) · [Categories](https://discourse.gohugo.io/categories.md) · [Tags](https://discourse.gohugo.io/tags.md)

---

## [Unable to submit sitemap.xml / feed.xml to Google Search Console for my Hugo-generated site (Couldn’t fetch)](https://discourse.gohugo.io/t/unable-to-submit-sitemap-xml-feed-xml-to-google-search-console-for-my-hugo-generated-site-couldn-t-fetch/56346)

<div class="topic-metadata">

**Author:** [@mawar](https://discourse.gohugo.io/u/mawar)\
**Replies:** 2\
**Last updated:** [December 10, 2025, 4:33am UTC](https://discourse.gohugo.io/t/unable-to-submit-sitemap-xml-feed-xml-to-google-search-console-for-my-hugo-generated-site-couldn-t-fetch/56346 "2025-12-10T04:33:38Z")

</div>

Hi everyone, I’m pretty new to Hugo and GitHub Pages, and I’ve built my site here: https://2mata.github.io. using Hugo (static site generator). I generated sitemap.xml (and feed.xml) using Hugo’s default setup. The file…

---

## [I've somehow broken searching on my site](https://discourse.gohugo.io/t/ive-somehow-broken-searching-on-my-site/55308)

<div class="topic-metadata">

**Author:** [@digdilem](https://discourse.gohugo.io/u/digdilem)\
**Replies:** 2\
**Last updated:** [July 14, 2025, 7:29am UTC](https://discourse.gohugo.io/t/ive-somehow-broken-searching-on-my-site/55308 "2025-07-14T07:29:32Z")

</div>

EDIT: Immediately after posting this, I thought of a workaround which has ‘fixed’ my site, but I would still value any thoughts as to how to fix this properly. The ‘fix’ was to add a /static/\_redirects file with the sing…

---

## [Tags and search do not work](https://discourse.gohugo.io/t/tags-and-search-do-not-work/53878)

<div class="topic-metadata">

**Author:** [@Loaxert](https://discourse.gohugo.io/u/Loaxert)\
**Replies:** 2\
**Last updated:** [March 9, 2025, 2:40pm UTC](https://discourse.gohugo.io/t/tags-and-search-do-not-work/53878 "2025-03-09T14:40:13Z")

</div>

Hi i have two problems, I have some articles with some tags not long ago It was working both the search and the list of tags but from one moment to another (do not touch anything related to this) stopped working and alre…

---

## [Doks FlexSearch Relative path](https://discourse.gohugo.io/t/doks-flexsearch-relative-path/53060)

<div class="topic-metadata">

**Author:** [@csgeek](https://discourse.gohugo.io/u/csgeek)\
**Replies:** 3\
**Last updated:** [January 12, 2025, 4:13pm UTC](https://discourse.gohugo.io/t/doks-flexsearch-relative-path/53060 "2025-01-12T16:13:22Z")

</div>

I’m using the Doks theme for hugo and I’m having some issues where the base URL is set to GDG - Grafana Dash-n-Grab but the search index it’s trying to retrieve for the search-index seems to always use the root of the fo…

---

## [Pagefind](https://discourse.gohugo.io/t/pagefind/52957)

<div class="topic-metadata">

**Author:** [@sysc4ll](https://discourse.gohugo.io/u/sysc4ll)\
**Replies:** 9\
**Last updated:** [January 5, 2025, 12:49pm UTC](https://discourse.gohugo.io/t/pagefind/52957 "2025-01-05T12:49:35Z")

</div>

hello, I’m trying to exclude tags’s name and categories’s name from the results of “pagefind”. What I have to do ? Please

---

## [Searching on blog doesn't function correctly](https://discourse.gohugo.io/t/searching-on-blog-doesnt-function-correctly/48512)

<div class="topic-metadata">

**Author:** [@mfaani](https://discourse.gohugo.io/u/mfaani)\
**Replies:** 1\
**Last updated:** [February 26, 2024, 5:59pm UTC](https://discourse.gohugo.io/t/searching-on-blog-doesnt-function-correctly/48512 "2024-02-26T17:59:41Z")

</div>

My blog has a search tab. When I query something, the search seems to filter things. However in the search results I see a lot of pages that don’t have the query. Example when I search for ‘recursion’ I see I opened …

---

## [Local Search not working on cloudflare](https://discourse.gohugo.io/t/local-search-not-working-on-cloudflare/48217)

<div class="topic-metadata">

**Author:** [@mahadevan](https://discourse.gohugo.io/u/mahadevan)\
**Replies:** 2\
**Last updated:** [February 11, 2024, 3:46pm UTC](https://discourse.gohugo.io/t/local-search-not-working-on-cloudflare/48217 "2024-02-11T15:46:25Z")

</div>

Hi :wave:, I have hosted my site on Cloudflare via GitHub. I use Hugo Theme Stack ( “GitHub - CaiJimmy/hugo-theme-stack: Card-style Hugo theme designed for bloggers” ). I copied all my posts from my old Hugo sites ins…

---

## [Pagefind 1.x — notable changes](https://discourse.gohugo.io/t/pagefind-1-x-notable-changes/46203)

<div class="topic-metadata">

**Author:** [@bwintx](https://discourse.gohugo.io/u/bwintx)\
**Replies:** 3\
**Last updated:** [September 20, 2023, 9:20pm UTC](https://discourse.gohugo.io/t/pagefind-1-x-notable-changes/46203 "2023-09-20T21:20:33Z")

</div>

For those who use Pagefind to provide site search, note that Pagefind 1.x has been released with one breaking change and a few deprecations:

---

## [Any ideas for implementing client side search index of Monorepo sites](https://discourse.gohugo.io/t/any-ideas-for-implementing-client-side-search-index-of-monorepo-sites/45582)

<div class="topic-metadata">

**Author:** [@razon](https://discourse.gohugo.io/u/razon)\
**Replies:** 1\
**Last updated:** [August 2, 2023, 2:21pm UTC](https://discourse.gohugo.io/t/any-ideas-for-implementing-client-side-search-index-of-monorepo-sites/45582 "2023-08-02T14:21:10Z")

</div>

I’m structuring my sites in monorepo way. common/ -- the common module and configurations used by sites. site1/ -- https://site1.example.com/ site2/ -- https://site2.example.com/ ... An…

---

## [SEO for aliases in migrated site](https://discourse.gohugo.io/t/seo-for-aliases-in-migrated-site/45367)

<div class="topic-metadata">

**Author:** [@rgabriel](https://discourse.gohugo.io/u/rgabriel)\
**Replies:** 0\
**Last updated:** [July 20, 2023, 3:40am UTC](https://discourse.gohugo.io/t/seo-for-aliases-in-migrated-site/45367 "2023-07-20T03:40:35Z")

</div>

I am migrating a non-Hugo site to Hugo, and moved everything to an subdirectory inside my content, which I called archive (or perhaps old). I have created an alias for every old page so that the original URL redirects t…

---

## [Hugo + self-hosted Search (Elastic or similar) Integration - tips?](https://discourse.gohugo.io/t/hugo-self-hosted-search-elastic-or-similar-integration-tips/45153)

<div class="topic-metadata">

**Author:** [@marshalc](https://discourse.gohugo.io/u/marshalc)\
**Replies:** 5\
**Last updated:** [July 6, 2023, 9:20am UTC](https://discourse.gohugo.io/t/hugo-self-hosted-search-elastic-or-similar-integration-tips/45153 "2023-07-06T09:20:18Z")

</div>

I’m not certain where the boundaries of this challenge lie (Hugo feature? Theme feature? Custom development?), so this is more of a request for help and pointers on the topic as my searching for prior examples hasn’t del…

---

## [Show Pagefind search with the local Hugo server](https://discourse.gohugo.io/t/show-pagefind-search-with-the-local-hugo-server/45166)

<div class="topic-metadata">

**Author:** [@Georg](https://discourse.gohugo.io/u/Georg)\
**Replies:** 0\
**Last updated:** [July 6, 2023, 9:17am UTC](https://discourse.gohugo.io/t/show-pagefind-search-with-the-local-hugo-server/45166 "2023-07-06T09:17:53Z")

</div>

Hi there, CloudCannons Pagefind is a fast search library for self-hosting indices and a search interface. Especially @bwintx wrote about it here and on his blog. Pagefind has its own local server that delivers a build …

---

## [Search using lunr.js does not return pages/urls when text exist in page sections](https://discourse.gohugo.io/t/search-using-lunr-js-does-not-return-pages-urls-when-text-exist-in-page-sections/44807)

<div class="topic-metadata">

**Author:** [@Yannis\_Sinadinos](https://discourse.gohugo.io/u/Yannis_Sinadinos)\
**Replies:** 10\
**Last updated:** [June 18, 2023, 8:46pm UTC](https://discourse.gohugo.io/t/search-using-lunr-js-does-not-return-pages-urls-when-text-exist-in-page-sections/44807 "2023-06-18T20:46:47Z")

</div>

We are building a website using the bigspring theme and we added lunr.js to search the content. We noticed that when the search text is in a blog post, then the page (blog post url) is included in the search results. But…

---

## [Lyra search for Hugo](https://discourse.gohugo.io/t/lyra-search-for-hugo/44435)

<div class="topic-metadata">

**Author:** [@djibe](https://discourse.gohugo.io/u/djibe)\
**Replies:** 7\
**Last updated:** [May 31, 2023, 8:36pm UTC](https://discourse.gohugo.io/t/lyra-search-for-hugo/44435 "2023-05-31T20:36:00Z")

</div>

Hi, I created a Github repository to share the simplest search engine (and yet powerful and lightweight) for Hugo via (Lyra search, becoming Orama). Thanks for your feedback.

---

## [Hugo Search Module without Fuse.js or Algolia](https://discourse.gohugo.io/t/hugo-search-module-without-fuse-js-or-algolia/44484)

<div class="topic-metadata">

**Author:** [@Mehedi](https://discourse.gohugo.io/u/Mehedi)\
**Replies:** 1\
**Last updated:** [May 24, 2023, 4:55am UTC](https://discourse.gohugo.io/t/hugo-search-module-without-fuse-js-or-algolia/44484 "2023-05-24T04:55:29Z")

</div>

Dear Hugo community, In the past, we often relied on external libraries like Algolia or Fuse.js to enable search functionality in our Hugo websites. However, we are thrilled to announce the launch of our new Hugo Search…

---

## [Help searching for content in several .md files](https://discourse.gohugo.io/t/help-searching-for-content-in-several-md-files/44425)

<div class="topic-metadata">

**Author:** [@Erick.G](https://discourse.gohugo.io/u/Erick.G)\
**Replies:** 1\
**Last updated:** [May 18, 2023, 11:37pm UTC](https://discourse.gohugo.io/t/help-searching-for-content-in-several-md-files/44425 "2023-05-18T23:37:46Z")

</div>

I have a hugo site that has product pages and each of these pages presents a list of related brands that comes from the related\_brands.md file. In another part of the site, I have pages for each of the brands and on thes…

---

## [Search query param pass to results page via JSON API](https://discourse.gohugo.io/t/search-query-param-pass-to-results-page-via-json-api/43395)

<div class="topic-metadata">

**Author:** [@arronrobles](https://discourse.gohugo.io/u/arronrobles)\
**Replies:** 0\
**Last updated:** [March 12, 2023, 2:03am UTC](https://discourse.gohugo.io/t/search-query-param-pass-to-results-page-via-json-api/43395 "2023-03-12T02:03:48Z")

</div>

Hey mates, trying to accomplish to pass some sort of query string from a search to a results page based on a parameter string or value that the results page will pick up a delivered result from my API JSON file. I know …

---

## [SearX implementation on hugo website](https://discourse.gohugo.io/t/searx-implementation-on-hugo-website/42818)

<div class="topic-metadata">

**Author:** [@spacedrone808](https://discourse.gohugo.io/u/spacedrone808)\
**Replies:** 0\
**Last updated:** [February 6, 2023, 5:17pm UTC](https://discourse.gohugo.io/t/searx-implementation-on-hugo-website/42818 "2023-02-06T17:17:37Z")

</div>

I am trying to do search request via one of SearX instances from html search form located on my website and would like to get results relevant to my site, but things not rolling like they should and i get results coverin…

---

## [PageFind for Hugo, ignoring certain pages instead of selectors](https://discourse.gohugo.io/t/pagefind-for-hugo-ignoring-certain-pages-instead-of-selectors/42641)

<div class="topic-metadata">

**Author:** [@Hash\_Borgir](https://discourse.gohugo.io/u/Hash_Borgir)\
**Replies:** 2\
**Last updated:** [January 27, 2023, 5:54am UTC](https://discourse.gohugo.io/t/pagefind-for-hugo-ignoring-certain-pages-instead-of-selectors/42641 "2023-01-27T05:54:25Z")

</div>

I just found out about PageFind for Hugo and within minutes I was able to set it up. I read the docs and it seems it only supports excluding selectors. Configuring how content is indexed | Pagefind Since it works based …
