Back
28/61
Lesson 28
6 min

XF: X Archive Search

Blazingly fast search across your X/Twitter archive

New to ACFS?

Complete the setup wizard first to get the most from these lessons.

Go to Choose Your OS
Goal

Search your X/Twitter archive with sub-millisecond queries using xf.

What Is XF?

XF provides blazingly fast full-text search across your personal X/Twitter archive: tweets, likes, DMs, and Grok conversations. Built with Tantivy, it delivers sub-millisecond queries with hybrid BM25 and semantic search.

All indexing happens locally on your machine. No data leaves your system. Index once at ~10,000 docs/second, then search instantly across years of content.

Ultra-Fast

Sub-millisecond query times

Tantivy + SQLite

Full-text search with metadata

Date Ranges

Filter by time periods

Export

Output to JSON, CSV, or plain text

Essential Commands

Index your Twitter archive
Search your tweets
Search with date filter
Show all options
Note
Download your archive from X/Twitter settings, then run xf index once.

Archive Mining Lab

Explore the full power of xf across 6 different archive mining scenarios. Watch tweets flow through the analysis pipeline with real-time relevance scoring, engagement metrics, and sentiment analysis.

X/Twitter Archive Mining Lab
23,847 documents indexed
Index ready
xf archive search
$Select a scenario above to start mining...
Choose a mining scenario to explore your archive6 scenarios available: search, DMs, Grok, likes, threads, sentiment

Example Searches

bash
# Index your archive (one-time)
xf index ~/Downloads/twitter-archive
# Search for a topic
xf search "machine learning"
# Search within a date range
xf search "rust" --from 2024-01-01 --to 2024-06-30
# Export results to JSON
xf search "AI" --format json > results.json

Ready to level up?

Mark complete to track your learning progress.