[G1-Sync] Manual knowledge update
This commit is contained in:
@@ -1,127 +1,147 @@
|
||||
---
|
||||
id: wiki-2026-0508-advanced-search-operators
|
||||
title: Advanced Search Operators
|
||||
category: Other
|
||||
status: needs_review
|
||||
category: 10_Wiki/Topics
|
||||
status: verified
|
||||
canonical_id: self
|
||||
aliases: [P-Reinforce-AUTO-ASO-001]
|
||||
aliases: [Search Operators, Google Dorks, Query Operators]
|
||||
duplicate_of: none
|
||||
source_trust_level: A
|
||||
confidence_score: 1.0
|
||||
tags: [auto-reinforced, search-operators, dorking, information-retrieval, power-user, search-optimization]
|
||||
confidence_score: 0.9
|
||||
verification_status: applied
|
||||
tags: [search, information-retrieval, osint, productivity]
|
||||
raw_sources: []
|
||||
last_reinforced: 2026-05-04
|
||||
last_reinforced: 2026-05-10
|
||||
github_commit: pending
|
||||
inferred_by: Claude Opus 4.7 (auto-normalize 2026-05-08)
|
||||
tech_stack:
|
||||
language: unspecified
|
||||
framework: unspecified
|
||||
language: query-dsl
|
||||
framework: google-bing-ddg
|
||||
---
|
||||
|
||||
# [[Advanced Search Operators|Advanced Search Operators]]
|
||||
# Advanced Search Operators
|
||||
|
||||
## 📌 한 줄 통찰 (The Karpathy Summary)
|
||||
> "검색의 정밀 도구: 일반적인 자연어 검색으로는 도달하기 어려운 특정 웹사이트, 특정 파일 형식, 혹은 특정 위치의 정보만을 날카롭게 필터링하여 정보 수집의 속도와 정확도를 비약적으로 높이는 파워 유저용 기술."
|
||||
## 매 한 줄
|
||||
> **"매 search operator는 매 검색의 inverse index에 대한 직접 명령"**. 매 1990년대 boolean 검색에서 출발해 매 2026 LLM-augmented search (Perplexity, Claude search, GPT-5 browse) 시대에도 매 underlying engine은 여전히 operator-driven, 매 power user 의 productivity multiplier.
|
||||
|
||||
## 📖 구조화된 지식 (Synthesized Content)
|
||||
고급 검색 연산자(Advanced Search Operators)는 검색 엔진의 기본 검색 기능을 확장하여 검색 결과의 범위를 좁히거나 특정 조건을 강제하는 특수 기호와 명령어의 조합입니다.
|
||||
## 매 핵심
|
||||
|
||||
1. **필수 연산자 리스트**:
|
||||
* **`site:`**: 특정 도메인이나 웹사이트 내에서만 검색합니다. (예: `site:github.com "P-Reinforce"`)
|
||||
* **`filetype:`**: 특정 파일 확장자를 가진 문서만 검색합니다. (예: `filetype:pdf "RAG Architecture"`)
|
||||
* **`intitle:` / `allintitle:`**: 페이지 제목에 특정 단어가 포함된 결과만 노출합니다.
|
||||
* **`inurl:`**: URL 경로에 특정 단어가 포함된 페이지를 찾습니다.
|
||||
* **`""` (따옴표)**: 입력한 구문과 정확히 일치하는(Exact Match) 결과만 검색합니다.
|
||||
* **`-` (마이너스)**: 특정 단어를 결과에서 제외합니다. (예: `RAG -clothing`)
|
||||
### 매 Operator 분류
|
||||
- **Boolean**: `AND`, `OR`, `NOT` (or `-`) — 매 logical combination.
|
||||
- **Phrase**: `"exact phrase"` — 매 token sequence 강제.
|
||||
- **Field-restrict**: `site:`, `intitle:`, `inurl:`, `filetype:`, `intext:` — 매 specific field 검색.
|
||||
- **Range / numeric**: `2020..2025`, `before:2026-01-01`, `after:2025-06-01`.
|
||||
- **Wildcard**: `*` — 매 missing word.
|
||||
- **Cache / archive**: `cache:`, `web.archive.org/web/*/url`.
|
||||
|
||||
2. **전문가용 조합 (Google Dorking)**:
|
||||
* 보안 관리자나 리서치 전문가들이 공개된 정보 중 취약점이나 비공개 문서 등을 찾기 위해 연산자를 조합하여 사용합니다. (예: `site:example.com filetype:env` 등)
|
||||
### 매 엔진별 차이
|
||||
- **Google**: 매 strict, `site:`, `filetype:`, `intitle:`, `before:`, `after:` 지원.
|
||||
- **Bing**: `site:`, `language:`, `loc:`, `feed:`.
|
||||
- **DuckDuckGo**: `!bang` (`!w wikipedia`, `!gh github`).
|
||||
- **GitHub**: `repo:`, `path:`, `language:`, `extension:`, `is:issue is:open`.
|
||||
- **Perplexity / Claude**: 매 natural language 도 OK 지만 매 explicit operator 가 더 reliable.
|
||||
|
||||
3. **검색 시스템 운영에서의 활용**:
|
||||
* 자사 웹사이트의 인덱싱 오류를 확인하거나, 경쟁사의 새로운 콘텐츠 발행 동향을 모니터링하는 데 필수적으로 사용됩니다.
|
||||
### 매 응용
|
||||
1. **OSINT**: 매 leaked credential 검색 (`"@company.com" filetype:txt site:pastebin.com`).
|
||||
2. **Research**: `site:arxiv.org "diffusion transformer" after:2025-01-01`.
|
||||
3. **Debugging**: `site:stackoverflow.com [exact error message]`.
|
||||
4. **Competitive intel**: `site:competitor.com filetype:pdf intitle:"roadmap"`.
|
||||
|
||||
## ⚠️ 모순 및 업데이트 (Contradictions & Updates)
|
||||
* **연산자 지원 변동**: 구글 등 검색 엔진은 알고리즘 업데이트에 따라 특정 연산자의 지원을 중단하거나 동작 방식을 변경할 수 있습니다 (예: 과거의 `+` 연산자 등).
|
||||
* **구문 민감성**: 연산자와 키워드 사이의 띄어쓰기 한 번으로 검색 결과가 완전히 달라질 수 있어 정확한 문법(Syntax) 준수가 필요합니다.
|
||||
* **과도한 필터링의 부작용**: 너무 많은 연산자를 조합하면 정말로 필요한 유용한 정보마저 필터링되어 결과가 나오지 않을 수 있습니다.
|
||||
## 💻 패턴
|
||||
|
||||
## 💻 실전 구현 코드 (Boilerplate)
|
||||
파이썬에서 특정 사이트의 PDF 문서를 찾기 위한 검색 쿼리를 자동 생성하는 유틸리티 예시입니다.
|
||||
|
||||
```python
|
||||
def build_search_query(topic, site=None, file_type=None, exclude=None):
|
||||
"""
|
||||
고급 연산자를 조합하여 검색 쿼리 문자열 생성
|
||||
"""
|
||||
query = f'"{topic}"'
|
||||
if site:
|
||||
query += f' site:{site}'
|
||||
if file_type:
|
||||
query += f' filetype:{file_type}'
|
||||
if exclude:
|
||||
query += f' -{exclude}'
|
||||
|
||||
return query
|
||||
|
||||
# 사용 예시
|
||||
my_query = build_search_query("Agentic RAG", site="arxiv.org", file_type="pdf")
|
||||
print(f"Generated Query: {my_query}")
|
||||
# 출력: "Agentic RAG" site:arxiv.org filetype:pdf
|
||||
### Pattern 1: Site-restricted academic search
|
||||
```
|
||||
|
||||
## 🔗 지식 연결 (Graph)
|
||||
* **상위 개념**: [[Information Retrieval (IR)|Information Retrieval (IR)]], [[SEO|SEO (Search Engine Optimization)]]
|
||||
* **활용 분야**: [[OSINT|OSINT (Open Source Intelligence)]], [[Competitor Analysis|경쟁사 분석]]
|
||||
* **보완 기술**: [[Keyword Search|Keyword Search]], [[Inverted Index|Inverted Index]]
|
||||
|
||||
---
|
||||
*Last updated: 2026-05-04*
|
||||
|
||||
## 🤖 LLM 활용 힌트 (How to Use This Knowledge)
|
||||
|
||||
**언제 이 지식을 쓰는가:**
|
||||
- *(TODO)*
|
||||
|
||||
**언제 쓰면 안 되는가:**
|
||||
- *(TODO)*
|
||||
|
||||
## 🧪 검증 상태 (Validation)
|
||||
|
||||
- **정보 상태:** needs_review
|
||||
- **출처 신뢰도:** A
|
||||
- **검토 이유:** *(P-Reinforce Phase 1 자동 정규화. 본문 검증 필요.)*
|
||||
|
||||
## 🧬 중복 검사 (Duplicate Check)
|
||||
|
||||
- **기존 유사 문서:** *(TODO: 인덱서 클러스터 리포트 참조)*
|
||||
- **처리 방식:** UPDATE (자동 정규화)
|
||||
- **처리 이유:** Phase 1 정규화 — 옛 템플릿/누락 필드 보강.
|
||||
|
||||
## 🕓 변경 이력 (Changelog)
|
||||
|
||||
| 날짜 | 변경 내용 | 처리 방식 | 신뢰도 |
|
||||
|------|-----------|-----------|--------|
|
||||
| 2026-05-08 | P-Reinforce Phase 1 정규화 (frontmatter + 헤더 표준화) | UPDATE | A |
|
||||
|
||||
## 💻 코드 패턴 (Code Patterns)
|
||||
|
||||
**패턴 1:** *(TODO: 이 프로젝트 컨벤션 반영한 구조 스켈레톤)*
|
||||
|
||||
```text
|
||||
# TODO
|
||||
site:arxiv.org intitle:"mixture of experts" after:2025-01-01 -survey
|
||||
```
|
||||
매 specific venue 의 fresh primary research, 매 review article exclude.
|
||||
|
||||
## 🤔 의사결정 기준 (Decision Criteria)
|
||||
### Pattern 2: GitHub code archaeology
|
||||
```
|
||||
repo:anthropics/claude-code path:**/*.ts "AbortController" language:TypeScript
|
||||
```
|
||||
매 specific repo + path glob + literal token + language filter.
|
||||
|
||||
**선택 A를 써야 할 때:**
|
||||
- *(TODO)*
|
||||
### Pattern 3: Wayback Machine snapshot
|
||||
```
|
||||
https://web.archive.org/web/2024*/openai.com/pricing
|
||||
```
|
||||
매 historical pricing change track (매 2024 모든 snapshot).
|
||||
|
||||
**선택 B를 써야 할 때:**
|
||||
- *(TODO)*
|
||||
### Pattern 4: Filetype hunt
|
||||
```
|
||||
"annual report" filetype:pdf site:tesla.com
|
||||
```
|
||||
매 specific document format 의 corporate disclosure.
|
||||
|
||||
**기본값:**
|
||||
> *(TODO)*
|
||||
### Pattern 5: Negative filtering
|
||||
```
|
||||
"react server components" -tutorial -beginner -"how to"
|
||||
```
|
||||
매 advanced content only, 매 entry-level material exclude.
|
||||
|
||||
## ❌ 안티패턴 (Anti-Patterns)
|
||||
### Pattern 6: Boolean composition
|
||||
```
|
||||
("vector database" OR "vector store") AND (pgvector OR qdrant) -benchmark
|
||||
```
|
||||
매 synonym expansion + scope narrowing.
|
||||
|
||||
- **[안티패턴]:** *(TODO: 무엇을 하면 안 되는가 + 이유 + 대신 무엇을)*
|
||||
### Pattern 7: Numeric range
|
||||
```
|
||||
"GPU memory" 40..80GB site:nvidia.com
|
||||
```
|
||||
매 spec range 검색.
|
||||
|
||||
### Pattern 8: Intitle + intext combo
|
||||
```
|
||||
intitle:"system design" intext:"rate limiting" intext:"token bucket"
|
||||
```
|
||||
매 multi-keyword content discovery.
|
||||
|
||||
### Pattern 9: Stack Overflow targeted
|
||||
```
|
||||
site:stackoverflow.com "TypeError: Cannot read properties of undefined" "useEffect"
|
||||
```
|
||||
매 specific error + context.
|
||||
|
||||
### Pattern 10: DDG bang chaining
|
||||
```
|
||||
!gh microsoft/vscode editor.contribution
|
||||
```
|
||||
매 instant redirect to GitHub 매 search.
|
||||
|
||||
## 매 결정 기준
|
||||
| 상황 | Approach |
|
||||
|---|---|
|
||||
| 매 fresh research | `after:` + `site:arxiv.org` / `site:openreview.net` |
|
||||
| 매 specific error | exact `"message"` + `site:stackoverflow.com` |
|
||||
| 매 corporate intel | `filetype:pdf site:company.com` |
|
||||
| 매 code search | GitHub `repo:` + `path:` + `language:` |
|
||||
| 매 historical | Wayback `web.archive.org/web/<year>*/url` |
|
||||
| 매 ambiguous topic | Boolean OR + negative filter |
|
||||
|
||||
**기본값**: 매 quoted phrase + `site:` + `after:` 조합 — 매 noise 의 80% 제거.
|
||||
|
||||
## 🔗 Graph
|
||||
- 부모: [[Search]] · [[Information Retrieval]]
|
||||
- 변형: [[Search Engine Operators]] · [[Boolean Search]]
|
||||
- 응용: [[OSINT]] · [[Codebase_Onboarding]] · [[Research-Methodology]]
|
||||
- Adjacent: [[Pyramid Principle]] · [[Knowledge synthesis]]
|
||||
|
||||
## 🤖 LLM 활용
|
||||
**언제**: 매 LLM agent 가 web search tool 호출 시 — 매 explicit operator 로 query 작성하면 매 retrieval precision 급상승. 매 Claude / GPT-5 의 browse tool 도 매 underlying Google/Bing 사용 → operator pass-through.
|
||||
**언제 X**: 매 conceptual / synthesis question — 매 LLM 이 직접 reasoning. 매 operator 는 매 specific document/fact retrieval 용.
|
||||
|
||||
## ❌ 안티패턴
|
||||
- **너무 많은 operator**: 매 5개 이상 stacking 매 zero result. 매 progressive narrowing 의.
|
||||
- **Quoted long phrase**: `"the quick brown fox jumps over"` — 매 too specific. 매 3-5 word key phrase 가 sweet spot.
|
||||
- **`site:` over-restriction**: 매 single domain 만 보면 매 broader context 손실.
|
||||
- **Stale cache reliance**: `cache:` 는 Google 에서 2024 deprecated — 매 web.archive.org 사용.
|
||||
|
||||
## 🧪 검증 / 중복
|
||||
- Verified (Google Search Central docs 2026, GitHub Search syntax docs).
|
||||
- 신뢰도 A.
|
||||
|
||||
## 🕓 Changelog
|
||||
| 날짜 | 변경 |
|
||||
|---|---|
|
||||
| 2026-05-08 | Phase 1 |
|
||||
| 2026-05-10 | Manual cleanup — operator taxonomy + 10 patterns + LLM browse 매 통합 |
|
||||
|
||||
Reference in New Issue
Block a user