mirror of
https://github.com/mintlify/docs.git
synced 2026-09-14 13:35:46 +08:00
1fedb88ca4
Renames optimize/search-boost.mdx to optimize/search.mdx and restructures it so search boost is one section alongside the new "Maximum search results" setting from mint #7771. Updates inbound links (changelog, pages.mdx, settings-reference.mdx) to deep-link into the boost section, adds a redirect from the old path, and includes light/dark screenshots of the new dashboard settings page.
84 lines
3.0 KiB
Plaintext
84 lines
3.0 KiB
Plaintext
---
|
|
title: "Search"
|
|
description: "Configure the in-product search bar on your Mintlify documentation site, including ranking boosts and the number of results returned per query."
|
|
keywords: ["search", "search ranking", "search boost", "boost", "search prioritization", "maximum search results", "max results"]
|
|
---
|
|
|
|
Configure how the search bar on your Mintlify-hosted documentation site behaves. These settings only affect in-product search. They do not change how external search engines index your pages.
|
|
|
|
## Boost search ranking
|
|
|
|
Use `boost` to bias the in-product search ranking of specific pages or sections. The value is a numeric multiplier applied to each chunk's relevance score: `boost: 3` makes a chunk three times as relevant as it would be without a boost.
|
|
|
|
### Boost a single page
|
|
|
|
Set `boost` in a page's [frontmatter](/organize/pages) to multiply its search ranking.
|
|
|
|
```mdx
|
|
---
|
|
title: "Custom domain"
|
|
description: "Connect your custom domain to your Mintlify documentation."
|
|
boost: 3
|
|
---
|
|
```
|
|
|
|
### Boost a navigation group
|
|
|
|
Set `boost` on a group in your `docs.json` navigation to apply the multiplier to every page under it.
|
|
|
|
```json
|
|
{
|
|
"navigation": {
|
|
"groups": [
|
|
{
|
|
"group": "Get started",
|
|
"boost": 5,
|
|
"pages": [
|
|
"quickstart",
|
|
"concepts"
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|
|
```
|
|
|
|
A page inherits the boost factor from its nearest ancestor that sets one. A child page or nested group can override the inherited boost by setting its own `boost` value. A page's frontmatter `boost` always wins over a value inherited from the navigation.
|
|
|
|
### De-prioritize content
|
|
|
|
Use a value below `1` to push pages further down in search results. For example, `boost: 0.5` halves a page's relevance score relative to other pages. A `boost` of `1` is equivalent to no boost.
|
|
|
|
```mdx
|
|
---
|
|
title: "Deprecated API"
|
|
description: "Documentation for the deprecated v1 API."
|
|
boost: 0.25
|
|
---
|
|
```
|
|
|
|
<Note>
|
|
Boost factors compose with the existing relevance score. Use them sparingly. Large multipliers can cause less-relevant pages to dominate search results and degrade overall search quality.
|
|
</Note>
|
|
|
|
## Maximum search results
|
|
|
|
Control how many results the search bar returns per query from your dashboard. The default is `6` results. You can set any value between `1` and `100`.
|
|
|
|
In your dashboard, navigate to **Settings** > **Deployment** > **Search**, set **Maximum search results** to the value you want, and select **Save changes**.
|
|
|
|
<Frame>
|
|
<img
|
|
alt="The Search settings page in the dashboard with the Maximum search results stepper set to 6."
|
|
className="block dark:hidden"
|
|
src="/images/search-settings-light.png"
|
|
/>
|
|
<img
|
|
alt="The Search settings page in the dashboard with the Maximum search results stepper set to 6."
|
|
className="hidden dark:block"
|
|
src="/images/search-settings-dark.png"
|
|
/>
|
|
</Frame>
|
|
|
|
Higher values surface more matches per query, which is useful for sites with broad topic coverage where users expect to scan many candidates. Lower values keep the results panel compact and push users toward the top-ranked match.
|