# Search Syntax Quick Reference

============================


## 1. File Content Search (prefix required: s:)

Command: **and**

Rule: Content contains **all keywords at the same time**

Syntax: s:A and B and C|ext1,ext2

Example: s:WangHan and WangLu and HuayuanPrimary|.txt,.md


Command: **or**

Rule: Content contains **any one keyword**

Syntax: s:A or B or C|extension

Example: s:Class or Grade5 or WangHan|.txt


## 2. File Name Search (without s: prefix)

Command: **and**

Rule: Filename contains **all keywords**

Syntax: A and B

Example: WangHan and WangLu


Command: **or**

Rule: Filename contains **any one keyword**

Syntax: A or B

Example: WangHan or WangLu


## 3. Multi-Extension Content Search Template

1. Single keyword multi-format: s:Hello|.txt,.css,.php,.cpp,.js

2. Must contain all keywords: s:Hello and Bad|.txt,.css,.php,.cpp,.js

3. Match any keyword: s:Hello or Bad|.txt,.css,.php,.cpp,.js


## 4. Pure Filename Search Template

1. Double keyword match all: Keyword1 and Keyword2

2. Multi-keyword match all: Keyword1 and Keyword2 and Keyword3

3. Multi-keyword match any: Keyword1 or Keyword2 or Keyword3