Keyword/faceted search for documents
POST/api/v1/search
Keyword search endpoint - Search documents using Meilisearch for full-text and faceted search.
This endpoint provides fast keyword search with typo tolerance, relevance ranking, and powerful filtering capabilities.
Features:
- Full-text search across title, description, abstract, text content
- Typo tolerance (finds "machnie" when searching for "machine")
- Relevance ranking based on TF-IDF and proximity
- Faceted filtering by dataset, status, MIME type, tags
- Sorting by date, size, relevance
- Highlighted search results
Flow:
- Query is sent to Meilisearch
- Full-text search across indexed fields
- Filters are applied (dataset_id, status, etc.)
- Results are ranked and highlighted
- Metadata is returned (no S3 fetching)
Performance: Typically < 50ms for most queries
Use cases:
- Keyword-based document discovery
- Filtering by metadata (tags, type, dataset)
- Search with typo tolerance
- Faceted search interfaces
- Finding documents by title, author, abstract
Request
Responses
- 200
- 422
Successful Response
Validation Error