The default
adist get and adist reindex commands use block-based indexing. Only use legacy commands if you need the older full-document indexing behavior.Legacy Commands Overview
Legacy commands maintain the original full-document indexing approach where entire files are indexed as single units:- legacy-get - Search using full-document indexing
- legacy-reindex - Reindex using full-document method
legacy-get
Search for documents in your project using the legacy full-document search method.Basic Usage
Examples
Search for authentication code
Search for authentication code
Search for specific files
Search for specific files
. or /, Adist treats it as a file search and shows matching file paths.Debug search results
Debug search results
Options
| Option | Alias | Description |
|---|---|---|
--debug | -d | Show debug information including project ID and indexed file count |
Search Behavior
File Search Mode If your query contains. or /, the command searches for matching file paths:
- File path and location
- Content preview (up to 15 lines)
- Highlighted search terms
- Project summary (for queries like “summary” or “overview”)
- File summaries (up to 3 files)
legacy-reindex
Reindex your project using the legacy full-document indexing method.Basic Usage
Reindex Specific Project
Options
| Option | Alias | Description |
|---|---|---|
--all | -a | Reindex all projects |
--summarize | -s | Generate LLM summaries for files and project |
--verbose | -v | Show verbose output during indexing |
Examples
Reindex current project
Reindex current project
Reindex with summaries
Reindex with summaries
- An LLM provider configured (
adist llm-config) - API key set (ANTHROPIC_API_KEY, OPENAI_API_KEY, or Ollama running locally)
Reindex all projects
Reindex all projects
Verbose reindexing
Verbose reindexing
When to Use Legacy Commands
Consider using legacy commands if:- You need to maintain consistency with older Adist indexes
- Your workflow depends on full-document search results
- You’re migrating from an older version of Adist
Migrating to Block-Based Commands
To switch from legacy to block-based indexing:-
Reindex your project using the new method:
-
Test searches with the new command:
-
Compare results - Block-based search provides:
- More precise code snippets
- Function-level granularity
- Better context for AI interactions
Both indexing methods can coexist. Legacy and block-based indexes are stored separately, so you can use both command sets on the same project.