Add metadata by OCR content

Questions, comments, discussions. Over time certain topics might be moved to their own category.
Post Reply
hermannk
Posts: 1
Joined: Mon Nov 04, 2019 6:54 pm

Add metadata by OCR content

Post by hermannk » Mon Nov 04, 2019 7:20 pm

Hello,

currently I'm manually adding metadata to my documents and create index by metadata. I'm trying to automate this process.
I was able to build the index by ocr content. Unfortunately I would prefer to use metadata values to build my indices.
So I've tried to use the same code to add metadata values which is working for indexes - but nothing happens.
This is some example code I've used to create the index:

Code: Select all

{% if "search text" in document.latest_version.ocr_content|join:" " %}ValueX{% endif %} 
May I have to add some trigger?
Is it possible to use ocr content to add metadata values like it is used for indices?

I hope somebody can give me a hint.

Thanks,
Hermann

Post Reply