The EDocman Indexer plugin is used to extract text content from supported document files and store it in the document's indexed_content field. This allows users to search documents by the actual content inside uploaded files, instead of only searching by document title, description, category, or other metadata.
For example, when a PDF file is uploaded, the plugin reads the text inside the PDF and saves that text into the database. After that, both EDocman Search and Joomla Smart Search can use this indexed content to return more accurate search results.
This is especially useful for document libraries, legal archives, manuals, reports, policies, contracts, technical files, and any website where users need to search inside uploaded documents without downloading them first.
If the plugin is configured to use the PHP
popenfunction,popenmust be enabled on your server. Ifpopenis disabled, you can configure the plugin to use the PHP PDF Parser instead.
The plugin provides automatic document content indexing for EDocman documents.
indexed_content field.pdftotext through the PHP popen function.popen is not available.indexed_contentThe most important result of this plugin is the generated indexed_content value.
When a document is uploaded, the plugin extracts readable text from the file and stores it in the database. This stored text becomes searchable data for the website.
Suppose you upload a PDF file named: employee-handbook.pdf
The document title may only be: Employee Handbook
But inside the PDF, there may be text such as: annual leave policy, remote working rules, expense reimbursement, employee benefits
After the plugin indexes the file, users can search for: remote working rules or: expense reimbursement and still find the document, even if those words are not in the document title or description.
This makes document search much more useful and accurate. After the plugin indexes the file, users can search for: remote working rules or: expense reimbursement and still find the document, even if those words are not in the document title or description.
This makes document search much more useful and accurate.
The indexed_content generated by this plugin can be used by two search systems:
Both search systems can search inside the value of indexed_content.
EDocman has its own document search feature. Once the plugin has extracted the document content and saved it into indexed_content, EDocman Search can use that value to find matching documents.
When users search documents through EDocman Search, the search can include:
This allows users to find documents based on words or phrases contained inside the uploaded files.
The plugin also works with Joomla Smart Search.
When a document is uploaded, EDocman runs the Indexer plugin to extract content from the document file. The extracted content is saved into the database. Then EDocman can trigger Joomla Smart Search indexing so that the document data, including the extracted file content, is indexed for Smart Search.
This allows Joomla Smart Search to find EDocman documents based on the actual content inside uploaded files.
When you upload a document through EDocman:
This means that for normal document uploads, the search index can be updated automatically.
If the administrator chooses to index document content manually from the Documents List, the workflow is different.
In this case, EDocman can extract the file content and update the indexed_content value in the database. However, Joomla Smart Search may still have old indexed data until its index is rebuilt or updated.
Therefore, after indexing documents from the Documents List, the administrator must run Joomla Smart Search indexing again before users can search the updated document content through Joomla Smart Search.
If you use Joomla Smart Search and manually re-index EDocman documents from the Documents List, you should also re-run Joomla Smart Search indexing.
Otherwise, the newly generated or updated indexed_content may not appear in Joomla Smart Search results yet.
The following table explains how document content indexing works in different search scenarios.
| Scenario | What EDocman Indexer Does | What Joomla Smart Search Needs |
|---|---|---|
| Upload a new document | Extracts file content and saves it to indexed_content |
Smart Search indexing can be triggered automatically by EDocman |
| Search through EDocman Search | Uses the saved indexed_content directly |
No separate Joomla Smart Search indexing is required |
| Search through Joomla Smart Search after upload | Uses Joomla's indexed search data | Document is indexed by Smart Search after upload |
| Manually index documents from Documents List | Updates indexed_content in the database |
Administrator must run Joomla Smart Search indexing again |
| Update or replace document file | indexed_content should be regenerated |
Smart Search index should be updated again |
The plugin is designed to extract text from supported document files.
Depending on the installed adapters and your server configuration, it can support file types such as:
PDF is the main supported format. Other file types depend on the available adapter files in the plugin. Notes:
After installing the plugin, go to: Extensions → Plugins Then search for: EDocman - Indexer plugin
Open the plugin to configure its parameters.
File Extensions This parameter is used to enter the file extensions that should be indexed. Use comma-separated values without dots.
Notes
Use POPEN Function
This parameter controls how PDF files are processed.
Yes When Use POPEN function is set to Yes, the plugin uses the PHP popen function to run the pdftotext command-line tool. This method usually provides better performance and better PDF text extraction quality. Depending on the server operating system, the plugin can use different binaries.
Requirements when using POPEN
No When Use POPEN function is set to No, the plugin uses a PHP PDF Parser library to read PDF content. This option is useful for hosting environments where popen is disabled.
The plugin works during the document saving and indexing process. It extracts readable text from supported document files and stores that text in the document's indexed_content field.
When a new document is uploaded, EDocman can automatically process the uploaded file and prepare its content for searching.
indexed_content field.This allows newly uploaded documents to become searchable by file content without requiring users to download the files manually.
When an existing document is saved, the plugin can check and update its indexed content.
indexed_content field.This is useful when a document file is replaced or when the document information is updated.
Administrators can also index document content manually from the Documents List.
When this action is used:
indexed_content field.If document content is indexed manually from the Documents List, administrators should run Joomla Smart Search indexing again. Otherwise, Joomla Smart Search may still use old indexed data.
Some documents may not need to be searchable by file content. Depending on your EDocman configuration, documents or categories can be marked as excluded from indexing.
When a document is excluded from indexing:
indexed_content value is not generated or updated.This is useful for:
The plugin can only index text that can be extracted from the document file. If the file does not contain readable text, the plugin may not be able to generate useful indexed content.
This section lists common issues and the recommended checks when document content is not searchable.
If PDF content is not indexed, check the following:
popen function is enabled.pdftotext binary exists and has execute permission.popen is not available on your server, set Use POPEN function to No.If document content was indexed manually from the Documents List, Joomla Smart Search may not show the updated content immediately.
In this case, run Joomla Smart Search indexing again.
Go to: Components → Smart Search → Index
Then rebuild or update the index.
After that, Joomla Smart Search can return results based on the updated indexed_content.
If EDocman Search does not return results from document content, check the following:
indexed_content field.For best results, use the following workflow depending on whether you are adding new documents or indexing existing ones.
indexed_content.indexed_content for existing files.For existing documents, updating
indexed_contentalone is not always enough for Joomla Smart Search. Joomla Smart Search must rebuild or update its own search index to include the latest document content.
To get better indexing and search results, follow these recommendations.
The EDocman Indexer plugin improves document search by extracting text from uploaded files and saving it into the document's indexed_content field.
This indexed content can be used by both:
For newly uploaded documents, EDocman can extract the file content and trigger Joomla Smart Search indexing automatically.
For documents indexed manually from the Documents List, administrators should run Joomla Smart Search indexing again so the updated document content becomes available in Joomla Smart Search results.
This plugin is especially helpful for websites that manage large document libraries and need full-text search inside uploaded PDF and office documents.