Search Engine Syntax Reference
Master advanced search syntax to improve search precision
Overview
Search engine advanced syntax are special commands provided by search engines that help you more precisely control search results. By reasonably using these syntax, you can quickly find the information you need and significantly improve search efficiency.
💡 Tip
In so.ez, you can easily create and manage these syntax through a visual interface without memorizing complex syntax formats.
Basic Syntax
site: - Specify Site Search
site: syntax is used to limit search results to specified websites or domains only. This is very useful for searching within specific websites.
Syntax Format
site:域名Usage Examples
site:github.com- Search only in GitHubsite:*.edu- Search only in educational websitessite:zhihu.com machine learning- Search "machine learning" in Zhihu
Notes
- Do not add space between site: and domain
- Can include subdomains, like site:blog.example.com
- Supports top-level domains, like site:.gov
intitle: - Title Search
intitle: syntax is used to limit keywords to appear in page titles in search results. This is very effective for finding pages on specific topics.
Syntax Format
intitle:关键词Usage Examples
intitle:tutorial- Pages with "tutorial" in titleintitle:"machine learning tutorial"- Pages with complete phrase in titleintitle:Python intitle:beginner- Titles containing both keywords
Related Syntax
allintitle:- Requires all subsequent words to appear in titleinanchor:- Search for keywords in anchor text
inurl: - URL Search
inurl: syntax is used to limit keywords to appear in URLs in search results. This is useful for finding specific types of pages (like blogs, forums).
Syntax Format
inurl:关键词Usage Examples
inurl:blog- Pages with "blog" in URLinurl:forum- Pages with "forum" in URLinurl:admin- Pages with "admin" in URL
filetype: - File Type Search
filetype: syntax is used to limit search results to specified file types only. This is very useful for finding documents in specific formats.
Syntax Format
filetype:文件扩展名Supported File Types
| Type | Extension | Description |
|---|---|---|
| Document | pdf | PDF document |
| Word | doc, docx | Microsoft Word document |
| Excel | xls, xlsx | Microsoft Excel spreadsheet |
| PowerPoint | ppt, pptx | Microsoft PowerPoint presentation |
| Text | txt | Plain text file |
| Webpage | html, htm | HTML webpage |
Usage Examples
filetype:pdf machine learning- Find PDF documents about machine learningfiletype:ppt artificial intelligence- Find PPT presentations about AIfiletype:xls data statistics- Find Excel spreadsheets about data statistics
intext: - Body Text Search
intext: syntax is used to limit keywords to appear in page body text in search results. This is similar to default search but more explicitly specifies search scope.
Syntax Format
intext:关键词Usage Examples
intext:artificial intelligence- Pages with "artificial intelligence" in body textintext:tutorial intext:beginner- Body text containing both keywords
Logical Operators
OR - Or Operation
OR operator is used to search for results containing any keyword. Note: Must use uppercase OR.
Syntax Format
关键词1 OR 关键词2Usage Examples
machine learning OR deep learning- Results containing any keywordPython OR Java OR C++- Results containing any programming language
AND - And Operation
AND operator is used to search for results containing all keywords. Note: Most search engines default to AND logic, keywords separated by spaces default to AND relationship.
Syntax Format
关键词1 AND 关键词2Usage Examples
machine learning AND Python- Results containing both keywordsartificial intelligence AND application AND case- Results containing all three keywords
NOT - Not Operation
NOT operator is used to exclude results containing specific keywords. Note: Google uses minus sign - instead of NOT.
Syntax Format
关键词 NOT 排除词关键词 -排除词Usage Examples
apple NOT phone- Search "apple" but exclude "phone" related contentPython -snake- Search "Python" but exclude "snake" related contenttutorial -ads- Search "tutorial" but exclude "ads" related content
Advanced Syntax
Exact Match - Quotes
Using double quotes " " enables exact match search, search results must contain the complete phrase within quotes.
Syntax Format
"完整短语"Usage Examples
"machine learning tutorial"- Search for pages containing complete phraseintitle:"Python beginner"- Pages with complete phrase in title
Wildcard - *
Using asterisk * as wildcard can match any word or phrase.
Syntax Format
关键词1 * 关键词2Usage Examples
the * of freedom- Matches "the house of freedom", "the land of freedom", etc."how to * Python"- Matches "how to learn Python", "how to use Python", etc.
Number Range - ..
Using two dots .. can specify number range.
Syntax Format
关键词 数字1..数字2Usage Examples
laptop 5000..10000- Search for laptops priced between 5000 and 10000tutorial 2020..2024- Search for tutorials from 2020 to 2024
Syntax Combination
Multiple syntax can be combined to create more precise search conditions.
Combination Rules
- Multiple syntax separated by spaces
- Syntax order does not affect search results
- Can nest multiple syntax
- Logical operators can connect multiple search conditions
Combination Examples
Example 1: Academic Paper Search
site:*.edu filetype:pdf intitle:论文 机器学习Description: Search for machine learning related content in PDF format with "paper" in title on educational websites.
Example 2: Technical Documentation Search
site:github.com filetype:md intitle:README PythonDescription: Search for Python related documents in Markdown format with "README" in title on GitHub.
Example 3: Exclude Specific Content
intitle:教程 filetype:pdf Python -广告 -推广Description: Search for Python tutorials in PDF format with "tutorial" in title, excluding ads and promotions.
Example 4: Multi-Condition Combination
(机器学习 OR 深度学习) AND (Python OR TensorFlow) filetype:pdfDescription: Search for PDF documents containing "machine learning" or "deep learning", and containing "Python" or "TensorFlow".
Search Engine Compatibility
Different search engines have different levels of support for advanced syntax. Below is compatibility information for major search engines:
| Syntax | Bing | Baidu | |
|---|---|---|---|
site: | ✅ Full Support | ✅ Full Support | ✅ Full Support |
intitle: | ✅ Full Support | ✅ Full Support | ✅ Full Support |
inurl: | ✅ Full Support | ✅ Full Support | ✅ Full Support |
filetype: | ✅ Full Support | ✅ Full Support | ✅ Full Support |
intext: | ✅ Full Support | ✅ Full Support | ⚠️ Partial Support |
OR | ✅ Full Support | ✅ Full Support | ⚠️ Partial Support |
AND | ✅ Full Support | ✅ Full Support | ✅ Full Support |
NOT | ✅ Full Support | ✅ Full Support | ⚠️ Partial Support |
"Exact Match" | ✅ Full Support | ✅ Full Support | ⚠️ Partial Support |
* Wildcard | ✅ Full Support | ⚠️ Partial Support | ❌ Not Supported |
.. Number Range | ✅ Full Support | ❌ Not Supported | ❌ Not Supported |
⚠️ Note
Search engine syntax support may change over time. It is recommended to test different syntaxes in actual use.