Search Pattern Collection
Master the art of searching with these proven patterns and techniques. From basic keyword searches to advanced semantic queries, this guide covers all the search patterns you'll need.
Keyword Search Patternsβ
Basic Keywordsβ
# Single keyword
oboyu search "budget"
# Multiple keywords (OR logic)
oboyu search "budget finance accounting"
# All keywords required (AND logic)
oboyu search "+budget +2024 +approved"
Phrase Searchβ
# Exact phrase
oboyu search '"project deadline march 15"'
# Partial phrase with wildcards
oboyu search '"project deadline *"'
Boolean Operatorsβ
# AND operator
oboyu search "python AND tutorial"
# OR operator
oboyu search "python OR java OR javascript"
# NOT operator
oboyu search "python NOT beginner"
# Complex boolean
oboyu search "(python OR java) AND tutorial NOT video"
Semantic Search Patternsβ
Concept-Based Searchβ
# Find documents about a concept
oboyu search "documents explaining customer churn" --mode vector
# Find similar documents
oboyu search "similar to our Q3 financial report" --mode vector
# Abstract concepts
oboyu search "strategies for improving team morale" --mode vector
Question-Based Searchβ
# Direct questions
oboyu search "what is our remote work policy?" --mode vector
# How-to queries
oboyu search "how to configure database connections" --mode vector
# Why queries
oboyu search "why did sales drop in December?" --mode vector
Context-Aware Searchβ
# Find related documents
oboyu search "documents related to the Johnson account" --mode vector
# Find follow-ups
oboyu search "follow-up actions from product launch meeting" --mode vector
# Find prerequisites
oboyu search "what should I read before the strategy meeting?" --mode vector
Hybrid Search Patternsβ
Balanced Searchβ
# Combine precision and recall
oboyu search "machine learning python tutorial" --mode hybrid
# Technical + conceptual
oboyu search "REST API best practices security" --mode hybrid
Weighted Searchβ
# Emphasize keywords
oboyu search "error 404 nginx" --mode hybrid
# Emphasize semantics
oboyu search "improving code quality" --mode hybrid
Pattern Search Examplesβ
Finding Patterns in Textβ
# Email patterns
oboyu search "[a-zA-Z]+@company\.com"
# Date patterns
oboyu search "\d{4}-\d{2}-\d{2}"
# Version numbers
oboyu search "v\d+\.\d+\.\d+"
Code Patternsβ
# Function definitions
oboyu search "def \w+\(.*\):"
# Import statements
oboyu search "^import|^from .* import"
# TODO comments
oboyu search "//\s*TODO:|#\s*TODO:"
Document Structure Patternsβ
# Markdown headers
oboyu search "^#{1,6}\s+.*Security"
# List items
oboyu search "^\s*[-*]\s+.*requirement"
# Numbered items
oboyu search "^\s*\d+\.\s+.*step"
Advanced Search Techniquesβ
Proximity Searchβ
# Words near each other
oboyu search "project NEAR/5 deadline"
# Same paragraph
oboyu search "budget SAME_PARA approval"
# Same sentence
oboyu search "meeting SAME_SENT cancelled"
Fuzzy Searchβ
# Spelling variations
oboyu search "organization~" # Also finds: organisation
# Typo tolerance
oboyu search "recieve~2" # Finds: receive
# Sound-alike (phonetic)
oboyu search "smith~phonetic" # Finds: Schmidt, Smythe
Field-Specific Searchβ
# Search in title/filename
oboyu search "title:report"
# Search in path
oboyu search "path:projects/alpha"
# Search by author (if metadata available)
oboyu search "author:john"
# Search by date
oboyu search "modified:2024-01-*"
Search Patterns by Use Caseβ
Meeting Notes Patternsβ
# Action items
oboyu search "action:|assigned:|TODO:|@"
# Decisions made
oboyu search "decided:|agreed:|approved:" --mode vector
# Attendees
oboyu search "attendees:|present:|participants:"
Project Documentationβ
# Requirements
oboyu search "must|shall|should|requirement"
# Technical specifications
oboyu search "spec:|specification:|interface:|API:"
# Diagrams and figures
oboyu search "figure|diagram|chart|graph" --mode vector
Research Papersβ
# Citations
oboyu search "\[\d+\]|\(\w+,\s*\d{4}\)"
# Abstract sections
oboyu search "abstract:|summary:"
# Conclusions
oboyu search "conclusion:|in conclusion|we conclude" --mode vector
Language-Specific Patternsβ
Japanese Search Patternsβ
# Hiragana only
oboyu search "[γ-γ]+"
# Katakana only
oboyu search "[γ‘-γ΄]+"
# Kanji compounds
oboyu search "[δΈ-ιΎ₯]{2,}"
# Mixed Japanese/English
oboyu search "γγγΈγ§γ―γ.*deadline"
Multi-language Patternsβ
# Documents in specific language
oboyu search "lang:ja δΌθ°"
# Mixed language documents
oboyu search "meeting δΌθ°" --mode hybrid
# Romanized Japanese
oboyu search "kaigi OR δΌθ°"
Performance Search Patternsβ
Optimized Searchesβ
# Limit scope early
oboyu search "error"
# Use specific index
oboyu search "configuration" --db-path ~/indexes/technical-docs.db
# Combine filters
oboyu search "critical"
Batch Search Patternsβ
# Multiple related searches
for term in "error" "warning" "critical"; do
oboyu search "$term" > "${term}-results.txt"
done
# Progressive refinement
oboyu search "project" > all-projects.txt
oboyu search "project alpha" > alpha-specific.txt
Search Pattern Templatesβ
Daily Standup Templateβ
# What I did yesterday
oboyu search "completed|done|finished"
# What I'm doing today
oboyu search "TODO|planned|scheduled"
# Blockers
oboyu search "blocked|issue|problem" --mode vector
Code Review Templateβ
# Find recent changes
oboyu search "modified|updated|changed"
# Security concerns
oboyu search "password|secret|key|token"
# TODO items
oboyu search "TODO|FIXME|HACK|XXX"
Research Templateβ
# Find methodology
oboyu search "method|methodology|approach"
# Find results
oboyu search "results|findings|outcomes"
# Find limitations
oboyu search "limitation|caveat|assumption"
Combining Patternsβ
Complex Queriesβ
# Financial + Date + Format
oboyu search "(revenue OR profit) AND 2024"
# Technical + Semantic + Scope
oboyu search "database optimization techniques" --mode hybrid
# Multi-pattern search
oboyu search '(TODO|FIXME) AND "high priority"'
Search Pattern Best Practicesβ
- Start Simple: Begin with basic keywords, then add complexity
- Use the Right Mode: Keyword for exact terms, semantic for concepts
- Filter Early: Use file-type and date filters to narrow scope
- Test Patterns: Use --limit 5 to test before full search
- Save Complex Patterns: Create aliases for frequently used patterns
Debugging Search Patternsβ
Pattern Testingβ
# Test with small result set
oboyu search "your pattern" --top-k 5
# Explain query interpretation
oboyu search "complex query"
# Debug regex patterns
oboyu search "pattern"
Next Stepsβ
- Apply these patterns in Real-world Scenarios
- Optimize search with Search Optimization
- Automate patterns with CLI Workflows