Add the 'ocr_content' attribute to documents to allow access to a document's OCR content for indexing and other purposes. Fixes the OCR indexing failing test. Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
5 lines
184 B
Python
5 lines
184 B
Python
from __future__ import unicode_literals
|
|
|
|
TEST_OCR_INDEX_NODE_TEMPLATE = '{% if "mayan" in document.ocr_content.lower() %}mayan{% endif %}'
|
|
TEST_OCR_INDEX_NODE_TEMPLATE_LEVEL = 'mayan'
|