There's an out-of-box AI Text Lines aspect (with a d:text property type) that an end-user can optionally use when configuring a rule. This enables a non-custom way to extract the Textract "raw text", so that OCR'd text (above the minimum confidence for lines) can be viewed as metadata, as well as being indexed and searchable.
Out-of-the-box, the raw text lines are stored in a multi-valued text property (which appear comma-separated in Alfresco Digital Workspace).
The ai-content-model.xml contains an aspect for the raw text. This is included by default in the Intelligence Services AMP:
<aspect name="ai:textLines">
<title>AI Text Lines</title>
<parent>ai:textract</parent>
<properties>
<property name="schema:textLines">
<title>Text</title>
<type>d:text</type>
<multiple>true</multiple>
<index enabled="true">
<tokenised>both</tokenised>
<facetable>true</facetable>
</index>
</property>
</properties>
</aspect>