diff --git a/app/views/__init__.py b/app/views/__init__.py index e979f101..bbc00bab 100644 --- a/app/views/__init__.py +++ b/app/views/__init__.py @@ -9,10 +9,10 @@ from app.views.filemanager import router as filemanager_router # Import all the view routers from app.views.general import router as general_router -from app.views.search import router as search_router from app.views.google_drive import router as google_drive_router from app.views.license_routes import router as license_router # Add the license router from app.views.onedrive import router as onedrive_router +from app.views.search import router as search_router from app.views.settings import router as settings_router from app.views.status import router as status_router from app.views.wizard import router as wizard_router diff --git a/docs/UserGuide.md b/docs/UserGuide.md index 67bd5674..8f1d5921 100644 --- a/docs/UserGuide.md +++ b/docs/UserGuide.md @@ -39,6 +39,7 @@ DocuElevate features a simple navigation system with the following main sections - **Home**: Dashboard and overview - **Upload**: For adding new documents to the system - **Files**: For viewing and managing processed documents +- **Search**: Dedicated full-text search across all document content - **About**: Information about DocuElevate ## Uploading Documents @@ -87,10 +88,33 @@ If configured, DocuElevate can automatically fetch documents from email attachme The **Files** page provides access to all processed documents: 1. Navigate to the **Files** page -2. Use the search box to find specific documents +2. Use the search box to find specific documents by filename, or the full-text search bar to search document content, metadata, and tags 3. Click on any file to view its details 4. Sort the list by any column by clicking on the column header +## Searching Documents + +DocuElevate provides two ways to search your documents: + +### Full-Text Search on the Files Page + +The **Files** page includes a full-text search bar (labelled "Full-Text Search") that searches across OCR-extracted text, AI metadata, tags, sender, recipient, and document type. Type at least 2 characters and results appear automatically below the search bar. + +### Dedicated Search Page + +For a more focused search experience, use the **Search** page accessible from the main navigation: + +1. Navigate to the **Search** page +2. Type your query into the search box — results appear automatically as you type (or press Enter) +3. Results are displayed in a Google-style format showing: + - **Document title** (linked to the file detail page) + - **Filename** + - **Document type**, **sender**, and **tag** badges + - **Content preview** with highlighted matching terms +4. Use pagination to browse through large result sets + +The search page is also accessible via URL with a pre-filled query: `/search?q=invoice` + ### File Detail View When you click on a file, you'll see a comprehensive detail view with the following sections: