Transformations from text to text are requested to Transform Service
Elasticsearch connector ( ) is using to-text transformation from any document mime type in order to index that content.
The transformation is requested by using this endpoint:
Content repository is then creating a new Transformation Request message that is processed by Transform Service.
The performance can be improved by returning directly the text from Alfresco Repository. See org.alfresco.repo.rendition2.TransformRequestProcessor#processEvent and related classes