Skip to content

Commit e598a70

Browse files
committed
document supported search operators
1 parent d69fd5b commit e598a70

File tree

2 files changed

+22
-1
lines changed

2 files changed

+22
-1
lines changed

docs/api/README.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
# API Docs
22

3-
This website is built using [Docusaurus](https://docusaurus.io/), a modern static website generator.
3+
This website is built using [Docusaurus](https://docusaurus.io/), a modern static website generator.
4+
5+
Run `npm run start` to start the development server.

docs/search_operators.md

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Supported search operators
2+
3+
* `A B C` - Searches for pages containing *all* of the terms A, B, or C. The terms are allowed to appear in different fields (url, title, body, etc.).
4+
5+
* `"A B C"` - Searches for pages containing the exact phrase "A B C" with the words in that specific order. The terms must appear in the same field.
6+
7+
* `site:example.com` - Restricts search results to only pages from the specified site example.com. It can also match subdomains `site:sub.example.com` or page prefixes `site:sub.example.com/page` which will both match `sub.example.com/page`, `sub.example.com/page/subpage`, `extra.sub.example.com/page` etc.
8+
9+
* `linkto:example.com` - Finds pages that contain links pointing to the specified domain example.com. Uses the same matching logic as `site:` queries.
10+
11+
* `intitle:A B` - Searches for pages where term A must appear in the title, while B can appear anywhere on the page.
12+
13+
* `inbody:A B` - Searches for pages where term A must appear in the main body text, while B can appear anywhere.
14+
15+
* `inurl:A B` - Searches for pages where term A must appear in the URL, while B can appear anywhere on the page.
16+
17+
* `exacturl:https://example.com` - Finds the page with exactly the specified URL. This is mostly used for debugging to see if a specific page is indexed.
18+
19+
* `A -B` - Searches for pages containing term A but not term B.

0 commit comments

Comments
 (0)