Skip to main content

API Reference

The Whoosh-NG API reference is auto-generated from source code using pydoctor, which parses Python modules and generates HTML documentation from docstrings.

note

If the embedded documentation does not display, the API docs may not have been generated yet in this deployment. View on GitHub for the full API documentation, or check the API modules list below.

API Modules​

Core API​

ModuleDescription
whoosh.indexHigh-level index creation, opening, and management
whoosh.fieldsSchema and field type definitions
whoosh.writingWriter classes and merge policies
whoosh.searchingSearcher, Results, and collectors
whoosh.queryQuery classes and parsers
whoosh.qparserQuery parser implementation
whoosh.analysisTokenizers, filters, and analyzers
whoosh.highlightSearch result highlighting
whoosh.spellingSpelling correction
whoosh.sortingFacets and sorting
whoosh.event_busEvent system
whoosh.hooksHook system
whoosh.middlewareMiddleware pipeline
whoosh.pluginsPlugin system and registry
whoosh.backendsStorage backends

Modern API​

ModuleDescription
whoosh_modern.data_sourcesData source protocol and implementations
whoosh_modern.viewsSearchView unified interface
whoosh_modern.middlewareRetry, cache, logging middleware
whoosh_modern.facetsFacetManager for auto-discovery
whoosh_modern.validation4-level validation framework
whoosh_modern.indexingBatchIndexWriter, AnalyzerCache
whoosh_modern.linguisticsLinguistic engine (stemmers, synonyms)
whoosh_modern.storageStorage providers (HybridStorage, etc.)
whoosh_modern.vectorNumpyProvider for vector similarity
whoosh_modern.autocompleteAutocomplete provider plugins
whoosh_fastapiFastAPI REST API endpoints
whoosh_adminAdmin UI dashboard
info

For the full interactive API documentation, run:

pip install pydoctor
python scripts/generate_api_docs.py

Then open website/static/api_docs/index.html in your browser.