Documents Indexer for Joomla

Documents Indexer is a Joomla extension for extracting text and metadata from files, storing the extracted content, and making documents available through Joomla Finder, also known as Smart Search.

It also provides protected frontend downloads and optional download notification emails.

This guide describes the behavior implemented in this repository. Screens and option names can vary slightly between releases; where the source does not define a requirement, verify the value in your Joomla installation.

1. Introduction

What Documents Indexer does

Documents Indexer scans a configured folder, extracts searchable text, and stores one indexed record per document. Administrators can manage records, access levels, publication state, and re-indexing from the Joomla Administrator.

Main benefits

  • Search document content with Joomla Finder / Smart Search.
  • Index the configured documents folder recursively.
  • Index a validated custom folder, with optional subfolders.
  • Preserve document access levels for frontend preview and download.
  • Re-index changed documents and record indexing activity.
  • Optionally update indexed content in Docman or EDOCMAN integrations.
  • Notify administrators when a frontend document download succeeds.

Supported formats

The repository includes extractors for the following file types:

ExtensionExtraction behavior
PDF Bundled PDF parser, or pdftotext when POPEN mode is enabled. PDF metadata is also read when available.
DOC Legacy binary text extraction. Results depend on the document structure.
DOCX Reads text from word/document.xml.
XLSX Reads cell values using the bundled PhpSpreadsheet library.
XLS Helper files exist, but the current XLS extractor returns no text. Verify this limitation before enabling xls.

The Allowed File Types field accepts a pipe-separated regular expression such as pdf|doc|docx|xlsx. Adding an extension does not create an extractor for that format.

Typical use cases

  • A searchable policy, manual, or knowledge-base library.
  • A private document portal with Joomla access-level protection.
  • A site that needs one search interface for PDF, Word, and spreadsheet files.
  • A Docman or EDOCMAN library whose document content should be searchable.

2. System Requirements

The manifests in this repository identify the component as Joomla extension version 6.0 and the plugins as version 5.0. The source uses Joomla 4/5-style APIs and includes compatibility handling for Joomla 4.4 and later mailer services.

The repository does not declare a definitive minimum Joomla or PHP version, so confirm the supported versions for the release you install with the extension provider.

Server checklist

  • A Joomla installation compatible with the release.
  • PHP version supported by that Joomla release.
  • A database supported by Joomla.
  • PHP file access to the configured document folders.
  • PHP ZIP support for DOCX and the bundled spreadsheet libraries.
  • PHP multibyte support if UTF-8 conversion is enabled.
  • For POPEN PDF extraction, permission to execute pdftotext. Linux servers may use /usr/bin/pdftotext, while platform binaries are bundled for supported platforms.
  • Joomla mail configuration if download notifications are enabled.

The extension bundles PDF parsing, PDF binaries, and spreadsheet libraries. Exact PHP extensions and operating-system support should be verified with the installed package and server administrator.

Permissions and limits

The web/PHP user must be able to read the configured folders and files. Custom folders must exist, be readable directories, and must not be symlinks. PHP memory, execution-time, upload, and mail-server limits can affect large files; increase limits only after checking hosting policy. Indexing loads document content into PHP and the database, so test large files on the target server.

3. Installation

Install from Joomla Administrator

  1. Download the Documents Indexer package supplied for your Joomla version.
  2. In System → Install → Extensions, choose Install from File.
  3. Upload the package and wait for Joomla to report a successful installation.
  4. Open Components → Documents Indexer.
  5. In System → Manage → Extensions, confirm that the Documents Indexer component is enabled.
  6. Enable the Finder - Documents Indexer plugin.
  7. If automatic indexing is required, enable the System - Documents Indexer plugin.

The package contains the component, the Finder plugin, and the system indexing plugin as separate Joomla extensions. If your download supplies separate ZIP files, install and enable each one.

First setup

  1. Open Components → Documents Indexer → Configuration.
  2. Set Documents Path to a readable folder.
  3. Set Allowed File Types, for example pdf|doc|docx|xlsx.
  4. Choose the integration and PDF/UTF-8 options appropriate for the server.
  5. Save the configuration.
  6. Open Documents Indexer → New Index, choose an access level, and run a small test index.
  7. Enable the Finder plugin before rebuilding Smart Search.

4. Extension Structure

Component: com_docindexer

The component provides:

  • Configuration and default settings.
  • Dashboard and indexing history.
  • Document list, publication state, access level, deletion, and editing.
  • New index, re-index, and smart re-index actions.
  • Frontend document routes for preview and download.
  • Text extraction helpers and bundled libraries.

Indexed records are stored in #__dix_docs. Configuration is stored as key/value rows in #__dix_configs. Indexing actions are recorded in #__dix_indexing_log.

Finder plugin: plg_finder_docindexer

This plugin connects #__dix_docs to Joomla Finder. It supplies document title, body/summary content, access and publication state, PDF metadata, routes, and taxonomy information to Smart Search. Enable it before rebuilding the Finder index.

System plugin: plg_sys_docindexer

This plugin performs limited automatic indexing during onAfterInitialise. It scans the configured default folder, indexes up to the configured batch size, and throttles runs with a cache interval. It can also be protected by a trigger code for a cron request. Automatic indexing is separate from the Administrator new-index workflow; confirm the behavior of your installed release when using both.

EDOCMAN and Docman

When the indexed document is associated with EDOCMAN or Docman, the component can copy extracted content to the corresponding indexed_content field. The system plugin has an EDOCMAN integration option. The exact association depends on the filename and integration settings; verify the third-party extension is installed and enabled.

5. Configuration

Open Components → Documents Indexer → Configuration.

Basic and advanced options

OptionDescription
Documents Path Root folder scanned by the default indexing workflow. The default installation path is shown by the Reset button, but you should verify the actual path.
Allowed File Types Pipe-separated extensions used by the default recursive scan, for example pdf|doc|docx|xlsx.
Extensions Integration Enables the component’s integration workflow. Verify the intended value for Docman/EDOCMAN on your release.
Use POPEN to Index PDF Files Uses pdftotext instead of the bundled PHP parser. Confirm that the binary can execute on the server.
Convert UTF8 Before Saving Converts extracted text and PDF metadata to UTF-8 before saving.
Download ID Optional provider download ID used to enable automatic update checks.

The database contains ocr_enabled and ocr_language defaults in this repository, but they are not exposed by the current configuration form or used by the current indexing path. Do not describe them as active OCR controls without verifying a later release.

Automatic indexing options

Configure these under the System - Documents Indexer plugin:

OptionDescription
Integrate with Edocman documents Stores indexed content in EDOCMAN when the plugin path can match the document.
Number Documents will be indexed Maximum number processed by one plugin call; default is 5.
Cache Time (Minutes) Minimum interval between automatic runs when no trigger code is configured; default is 20.
Trigger Reminder Code Secret request value. When set, the plugin runs only when the request contains the same trigger_reminder_code. Treat this value as a secret.
Last Run Time Hidden runtime value maintained by the plugin.

Download notification email options

OptionDescription
Send download notification emails Enables notifications after an authorized frontend download. Disabled by default.
Notification email recipients Addresses separated by commas, semicolons, or new lines. Invalid addresses are ignored.
Send to Super Users if recipients are empty Uses active Super Users when no valid explicit recipient exists. If none are available, the site mailfrom address is used.
Download notification email subject Subject template; supported tags are replaced.
Download notification email body Plain-text or HTML body template.
Email format Plain Text or HTML. Plain text line breaks are converted for HTML templates that contain no HTML tags.

The sender is Joomla’s configured mailfrom/fromname. Mail failures are logged and do not block the file download.

Supported dynamic tags

Use the tags exactly as shown, including square brackets.

TagValue
[DOCUMENT_ID] Indexed document ID.
[DOCUMENT_TITLE] Document title.
[DOCUMENT_ALIAS] Alias, when present.
[DOCUMENT_DESCRIPTION] Description with HTML tags removed, when present.
[DOCUMENT_FILENAME] Base filename.
[DOCUMENT_FILESIZE] Stored file size.
[DOCUMENT_URL] Document download route.
[DOCUMENT_DOWNLOAD_URL] Document download route.
[USER_ID] Joomla user ID, or 0 for a guest.
[USER_NAME] User name, or Guest.
[USER_USERNAME] Username, or guest.
[USER_EMAIL] User email, empty for a guest.
[IP_ADDRESS] Request IP address.
[USER_AGENT] Browser user-agent string.
[DOWNLOAD_DATE] Download date and time in the site timezone.
[SITE_NAME] Joomla site name.
[SITE_URL] Joomla root URL.

In HTML mode, replacement values are HTML-escaped. Do not put untrusted HTML in a template unless you understand the consequences.

6. Indexing Documents

Index the configured folder

  1. Confirm Documents Path and Allowed File Types.
  2. Open Documents Indexer → Dashboard or Documents.
  3. Select New Index.
  4. Choose the Joomla access level that should be able to view/download the records.
  5. Leave custom-folder indexing disabled to use the configured path.
  6. Start the process and wait for the progress screen to finish.
  7. Review the success/failure result and the indexing log.

The default workflow scans subfolders recursively. One request processes a document at a time, so large libraries can require many requests.

Index a custom folder

  1. Select New Index or Re-index.
  2. Enable Use custom folder path.
  3. Enter an existing, readable, non-symlink directory. Fill Joomla Root can prefill the Joomla root path.
  4. Enable Index recursive subfolders if required.
  5. Choose the access level and start indexing.

Custom-folder mode currently scans PDF files only. The path is validated and files outside the selected source root are rejected.

Re-index and smart re-index

  • Re-index removes the old indexed rows and builds them again from the selected source.
  • Smart Re-Index checks stored modification times and hashes, then re-extracts changed files.
  • A document can also be opened from Documents and re-indexed individually when the edit screen offers that action.

Back up the database before a full re-index. Do not interrupt a large run unless you are prepared to inspect partial results.

Removing deleted files

The index is database-backed; deleting a physical file does not automatically remove its #__dix_docs row. Review Documents and delete stale rows, or use the full re-index workflow when appropriate. Before deleting rows, confirm that the source file is genuinely no longer needed.

Large libraries

  • Start with a small folder and confirm extraction/search before bulk indexing.
  • Use automatic indexing with a conservative batch size and cache interval.
  • Monitor PHP memory, execution time, database size, and web-server logs.
  • Prefer Smart Re-Index for routine changes.
  • Keep source folders organized and avoid indexing backups or temporary files.

7. Joomla Finder / Smart Search

Enable and rebuild

  1. Enable Finder - Documents Indexer in System → Manage → Extensions.
  2. Complete Documents Indexer indexing first.
  3. Open Components → Smart Search.
  4. Run Index, or rebuild the index using the controls provided by your Joomla version.
  5. Confirm that indexed documents appear in the Finder index.

The component also dispatches Finder save events for new and re-indexed records. A successful component index does not replace a Joomla Smart Search index rebuild when the Finder index is stale.

Add a Smart Search menu item

  1. Open Menus → [target menu] → New.
  2. Choose the Joomla Smart Search menu item type.
  3. Set access, language, and menu publication options.
  4. Save and open the menu item on the frontend.
  5. Search for a distinctive word that occurs in a test document.

Common Finder problems

  • No results: confirm the Finder plugin is enabled, documents are published, access levels match, and Smart Search has been re-indexed.
  • Old content: run Smart Re-Index, then rebuild Smart Search.
  • Plugin errors: confirm the component is enabled and inspect Joomla logs.
  • Only some documents appear: verify the extension is in Allowed File Types and that its extractor returns text.
  • Access mismatch: test as a user in the document’s configured access level.

8. Download Notification Emails

The repository includes the download notification feature described for Documents Indexer 7.1. Confirm the installed package version before relying on this section; older packages may not contain it.

Enable and configure

  1. Configure Joomla’s global mail settings and send a normal test email.
  2. Open Documents Indexer → Configuration.
  3. Set Send download notification emails to Yes.
  4. Enter one or more valid recipients, or enable the Super User fallback.
  5. Choose Plain Text or HTML.
  6. Customize the subject and body with the supported tags.
  7. Save the configuration.

Notifications are sent only after the frontend request passes access checks and the document can be resolved. Failed or unauthorized downloads do not send a notification. A notification failure is logged but does not prevent a valid download.

Test

  1. Publish and index a small test document.
  2. Set its access level deliberately.
  3. Download it from the frontend as a permitted guest and/or logged-in user.
  4. Check the recipient mailbox and Joomla logs.
  5. Confirm guest values: Guest, guest, and user ID 0.
  6. Test an HTML template separately; inspect both the rendered message and raw source if formatting is unexpected.

If no explicit recipients are valid, the extension first tries active Super Users when enabled and then Joomla’s mailfrom. Keep this fallback in mind when testing.

9. Upgrade Guide

  1. Read the release notes for the target version.
  2. Back up the Joomla files and database, including #__dix_docs and #__dix_configs.
  3. Record configuration values, enabled plugins, and custom templates.
  4. Use System → Install → Extensions to install the new package, or use Joomla Update when the update is offered.
  5. Verify the component and both plugins remain enabled.
  6. Recheck the documents path, file types, integrations, PDF mode, and notification settings.
  7. Run a small Smart Re-Index and rebuild Joomla Smart Search.
  8. Test preview, download permissions, and notification email delivery.

The Configuration page can display an update notification, and Download ID may be required for automatic updates. Joomla Update availability and version compatibility are determined by the installed release metadata; verify them before upgrading a production site.

10. Troubleshooting

SymptomChecks and solution
Documents are not indexed Check the path, permissions, extension pattern, readable files, and the indexing log. Test one small file first.
Search results do not appear Enable the Finder plugin, publish the record, confirm access, and rebuild Smart Search.
PDF content is not searchable Test the bundled parser, then test POPEN with a working pdftotext binary. Scanned/image-only PDFs need OCR; OCR settings in this repository are not active controls.
Finder returns no results Confirm com_docindexer is enabled and the Finder index contains the document. Check Joomla logs for plugin errors.
Permission errors Grant the PHP user read access to the folder and files. Custom folders must not be symlinks.
Large files fail Reduce batch size, check memory/time limits, try the other PDF extraction mode, and inspect server logs.
Email is not sent Enable the feature, validate recipients, test Joomla mail, and check the download notification log category.
HTML email is malformed Choose HTML format, use valid HTML, escape dynamic values as appropriate, and avoid assuming plain-text line breaks create desired markup.
A deleted file still appears Remove the stale indexed record or perform a controlled full re-index.

11. FAQ

Which Joomla and PHP versions are supported?

The source does not declare a complete support matrix. Use the Joomla/PHP versions stated for your downloaded release and verify with the provider. The code includes Joomla 4.4+ mailer handling.

Does adding an extension to Allowed File Types make it searchable?

No. It only changes the scan pattern. A matching extractor must also exist and return text.

Are subfolders indexed?

The configured default folder is scanned recursively. Custom-folder indexing has a separate Index recursive subfolders option.

Can I search document metadata?

PDF metadata fields such as author, title, keywords, and creation date when available are stored and supplied to Finder. Metadata availability depends on the source file.

Can guests download documents?

Only if the document’s Joomla access level permits the guest view level. The download controller checks access before serving the file.

Why does a download email show Guest?

That is expected for a frontend request without a logged-in user. The email uses Guest, guest, and user ID 0.

Can I use HTML email templates?

Yes. Select HTML, write valid HTML, and test with a real frontend download. Replacement values are HTML-escaped.

Does automatic indexing rebuild Smart Search?

The system plugin indexes new files, but its path does not call the component’s Smart Search dispatch in the same way as the Administrator workflow. Rebuild Smart Search after automatic indexing if results are missing.

12. Best Practices

  • Configure and test one document before indexing a library.
  • Use a dedicated, readable source folder and exclude temporary, backup, and private server files.
  • Keep the allowed extension list limited to formats with working extractors.
  • Use Joomla access levels and document publication state as part of the security model.
  • Do not expose a source folder directly if protected downloads are required; use the component’s access-controlled route.
  • Restrict custom folder permissions and never use a symlink to bypass source validation.
  • Use Smart Re-Index for routine updates and keep the full index workflow for controlled maintenance.
  • Schedule automatic indexing with a conservative batch size and cache interval.
  • Rebuild Joomla Smart Search after bulk indexing or upgrades.
  • Monitor database growth because extracted content is stored in #__dix_docs.
  • Configure Joomla mail before enabling notifications and use least-privilege recipients.
  • Treat the system plugin trigger code and Download ID as sensitive configuration values.
  • Back up the database before upgrades, deletions, or full re-indexing.