Skip to content

Commit 44138d4

Browse files
committed
Search page
1 parent a719d31 commit 44138d4

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed

search.mdx

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
---
2+
title: "Search"
3+
description: "Learn how our search ranks results and discover tips for structuring your content to improve its discoverability"
4+
icon: "file-magnifying-glass"
5+
---
6+
7+
## Search Result Ranking
8+
9+
Our search functionality combines two main techniques to deliver relevant results:
10+
11+
1. **Prefix Matching:** If your search query exactly matches the beginning of a word in the content (like searching for "insta" matching "install"), those results are given the highest priority.
12+
2. **Full-Text Search:** For broader matches, our search scans your entire content to find results based on the words present in the content.
13+
14+
### Boosting Relevance
15+
16+
To ensure the most important content surfaces first, we apply boosts:
17+
18+
- **Page Titles:** Titles receive the most significant boost as they usually represent the main topic of a page.
19+
- **Sub-headings:** Headings within a page are also boosted, but to a lesser extent, to highlight key sections.
20+
21+
### Content Chunking
22+
23+
To provide more granular and relevant results, search operates on content "chunks." Content is broken down as follows:
24+
25+
- **Page-level:** The title and description of each page form a primary chunk.
26+
- **Section-level:** Each heading and the content immediately following it create additional, more specific chunks. This helps users find the most relevant section within a page.
27+
28+
<Note>
29+
{" "}
30+
Content appearing before the first heading on a page, or on pages without any headings,
31+
is associated with the main page-level chunk for search purposes.
32+
</Note>
33+
34+
## Version and Language Filtering
35+
36+
Search results are automatically filtered based on the version and language you have selected for browsing the documentation.
37+
Results will also include content not specific to any version that matches the query.
38+
39+
## Optimizing Content for Search
40+
41+
Here are some recommendations for structuring your content to work well with our search features:
42+
43+
- **Use Clear and Descriptive Titles:** Ensure titles accurately reflect the page's main topic and include terms users are likely to search for.
44+
- **Structure with Headings:** Utilize headings to break down content logically and create effective searchable chunks. Clear headings make content easier to understand.
45+
- **Include Relevant Keywords:** Incorporate the words and phrases your audience is likely to use naturally within your sentences.
46+
- **Keep Sections Focused:** Ensure the text under each heading directly relates to that topic to improve the accuracy of search results pointing to specific sections.
47+
- **Write Concise Descriptions:** Craft clear page descriptions that summarize the content and include primary keywords.

0 commit comments

Comments
 (0)