# PDF search

**URL:** <https://tainacan.discourse.group/t/pdf-search/2650>\
**Category:** Suporte\
**Created:** [Janeiro 19, 2026, 11:57am UTC](https://tainacan.discourse.group/t/pdf-search/2650 "2026-01-19T11:57:51Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![ralfh](https://yyz2.discourse-cdn.com/free1/user_avatar/tainacan.discourse.group/ralfh/32/3328_2.png) [@ralfh](https://tainacan.discourse.group/u/ralfh)\
**Post date:** [Janeiro 19, 2026, 11:57am UTC](https://tainacan.discourse.group/t/pdf-search/2650/1 "2026-01-19T11:57:51Z")

</div>

What is the actual status for PDF search and where can I find this in the documentation. I’m German but don’t understand Portuguese.

---

<div class="post-metadata">

**Author:** ![marvila](https://yyz2.discourse-cdn.com/free1/user_avatar/tainacan.discourse.group/marvila/32/2626_2.png) [@marvila](https://tainacan.discourse.group/u/marvila)\
**Post date:** [Janeiro 19, 2026, 12:19pm UTC](https://tainacan.discourse.group/t/pdf-search/2650/2 "2026-01-19T12:19:20Z")

</div>

Hi **[ralfh](https://tainacan.discourse.group/u/ralfh)**, how are you?

PDF search works and works well with PDF created with OCR too.

Here is the wiki page for that functionality:

[https://tainacan.github.io/tainacan-wiki/#/indexing-pdf](https://tainacan.github.io/tainacan-wiki/#/indexing-pdf)

Mostly what you need to do is define a constant and, if you have already imported the PDFs, run the WP cli command to reindex them.

In short:

wp-config.php:

define(‘TAINACAN\_INDEX\_PDF\_CONTENT’, true);

WP CLI command:

wp tainacan index-content --collection=all

or

wp tainacan index-content --collection=\<collection\_id\>

Hope it helps 🙂

Cheers,  
Fred Marvila

---

<div class="post-metadata">

**Author:** ![mateus.m.luna](https://yyz2.discourse-cdn.com/free1/user_avatar/tainacan.discourse.group/mateus.m.luna/32/3_2.png) [@mateus.m.luna](https://tainacan.discourse.group/u/mateus.m.luna)\
**Post date:** [Janeiro 19, 2026, 12:52pm UTC](https://tainacan.discourse.group/t/pdf-search/2650/3 "2026-01-19T12:52:40Z")

</div>

To add up a bit:

The feature works like this:

When uploading a PDF file as the main document of the item, a php extension called `Smalot\PdfParser` will try to read it’s content and extract it into an internal metadata, that you won’t see on interface but will be reachable when you use textual search (the simple search input) or the advanced search when you select “Document content”.

The constant that @marvila mentioned, `TAINACAN_INDEX_PDF_CONTENT` was the way to go in versions before 1.0.0. While it still works, you can enable the indexing (in case it is not yet) via “Tainacan” → “Settings” → “PDF Content”. The WP CLI command mentioned is necessary in case you have already uploaded a series of files before enabling this.

---

<div class="post-metadata">

**Author:** ![ralfh](https://yyz2.discourse-cdn.com/free1/user_avatar/tainacan.discourse.group/ralfh/32/3328_2.png) [@ralfh](https://tainacan.discourse.group/u/ralfh)\
**Post date:** [Janeiro 19, 2026, 2:12pm UTC](https://tainacan.discourse.group/t/pdf-search/2650/4 "2026-01-19T14:12:57Z")

</div>

Wow. Very quick and helpful response.  
I will give it a try.  
Do you plan to update the wiki information from 0.12. with this new process?

---

<div class="post-metadata">

**Author:** ![mateus.m.luna](https://yyz2.discourse-cdn.com/free1/user_avatar/tainacan.discourse.group/mateus.m.luna/32/3_2.png) [@mateus.m.luna](https://tainacan.discourse.group/u/mateus.m.luna)\
**Post date:** [Janeiro 20, 2026, 12:17pm UTC](https://tainacan.discourse.group/t/pdf-search/2650/5 "2026-01-20T12:17:14Z")

</div>

> [@ralfh](#):
>
> Do you plan to update the wiki information from 0.12. with this new process?

Yeah we need several updates in our docs… I did added the Settings screen info there but there is certainly more that can be done to clarify these alternatives. Hope you can use the feature from now on!

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/tainacan/original/1X/7a4cda66d79553ef5eebf93769c00bdba65e7ab2.png) [@system](https://tainacan.discourse.group/u/system)\
**Post date:** [Março 21, 2026, 12:18pm UTC](https://tainacan.discourse.group/t/pdf-search/2650/6 "2026-03-21T12:18:13Z")

</div>

Este tópico foi fechado automaticamente 60 dias depois da última resposta. Novas respostas não são mais permitidas.
