# Documenter: how to exclude search results?

**URL:** https://discourse.julialang.org/t/documenter-how-to-exclude-search-results/86785
**Category:** Tooling
**Tags:** documentation, documenter
**Created:** [September 5, 2022, 8:42am UTC](https://discourse.julialang.org/t/documenter-how-to-exclude-search-results/86785 "2022-09-05T08:42:50Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![t-bltg](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/t-bltg/32/25526_2.png) [@t-bltg](https://discourse.julialang.org/u/t-bltg)
#### Post date: [September 5, 2022, 8:42am UTC](https://discourse.julialang.org/t/documenter-how-to-exclude-search-results/86785/1 "2022-09-05T08:42:50Z")

</div>

I’d like to exclude certain pages from appearing in the search results for fixing [Docs: Search results are hard to interpret for common search terms · Issue #4157 · JuliaPlots/Plots.jl · GitHub](https://github.com/JuliaPlots/Plots.jl/issues/4157).

What is the process used by `Documenter` to generate search results ?  
Is there a way to fine tune these ?

---

<div class="post-metadata">

### Author: ![t-bltg](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/t-bltg/32/25526_2.png) [@t-bltg](https://discourse.julialang.org/u/t-bltg)
#### Post date: [September 5, 2022, 6:17pm UTC](https://discourse.julialang.org/t/documenter-how-to-exclude-search-results/86785/2 "2022-09-05T18:17:57Z")

</div>

Documenter’s search seems to be powered by `lunrjs`: [JSDoc: Home](https://lunrjs.com/docs/index.html).

I guess one needs to skip pushing to `search_index` in [Documenter.jl/HTMLWriter.jl at b4dc61bc3d07245550c8f47f2728ad9a92086b61 · JuliaDocs/Documenter.jl · GitHub](https://github.com/JuliaDocs/Documenter.jl/blob/b4dc61bc3d07245550c8f47f2728ad9a92086b61/src/Writers/HTMLWriter.jl#L1629) or [Documenter.jl/HTMLWriter.jl at b4dc61bc3d07245550c8f47f2728ad9a92086b61 · JuliaDocs/Documenter.jl · GitHub](https://github.com/JuliaDocs/Documenter.jl/blob/b4dc61bc3d07245550c8f47f2728ad9a92086b61/src/Writers/HTMLWriter.jl#L1530) on a specific elem clause.

---

<div class="post-metadata">

### Author: ![t-bltg](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/t-bltg/32/25526_2.png) [@t-bltg](https://discourse.julialang.org/u/t-bltg)
#### Post date: [September 8, 2022, 7:49am UTC](https://discourse.julialang.org/t/documenter-how-to-exclude-search-results/86785/3 "2022-09-08T07:49:17Z")

</div>

@mortenpi had similar ideas in [https://github.com/JuliaPlots/Plots.jl/issues/2337#issuecomment-645048293](https://github.com/JuliaPlots/Plots.jl/issues/2337#issuecomment-645048293).

---

<div class="post-metadata">

### Author: ![t-bltg](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/t-bltg/32/25526_2.png) [@t-bltg](https://discourse.julialang.org/u/t-bltg)
#### Post date: [November 20, 2022, 9:36pm UTC](https://discourse.julialang.org/t/documenter-how-to-exclude-search-results/86785/4 "2022-11-20T21:36:55Z")

</div>

I went for monkey patching `Documenter` in [monkey patch `Documenter` to avoid gallery duplicate in search results by t-bltg · Pull Request #317 · JuliaPlots/PlotDocs.jl · GitHub](https://github.com/JuliaPlots/PlotDocs.jl/pull/317).
