Currently code wanting to index items needs to do the transformation to plaintext itself.
It is not necessarily the most appropriate thing to do and doing the transformation the usual text formats encountered in Tuleap (plaintext, HTML, CommonMark) in the FTS backends themselves would be better. Notably it makes possible to do the transformation in the async code instead of blocking the users.