Closed rainerhillebrand closed 1 year ago
I see your point but it has not been an issue on any of the sites where I use the search function.
People needing to search more than the "RegularPages" they can easily override home.searchindex.json
.
I will therefor leave it as is.
Dear Fredrik,
When searching for strings that are only on the home page(s) then they will not be found. The reason is the indexing with site.RegularPages in home.searchindex.json:
The home page and its multilingual versions are not regular pages. I solved it on my site with site.Pages:
However, this means that more pages are indexed than I would like to see in my index like "tags" and "categories". Therefore, I exclude them hard coded:
It's not flexible but it works. It might be more flexible to define an array for content types in hugo.toml to be excluded from indexing.
Best regards,
Rainer