Hi,
You can actually do it in HANA using Text Analysis or Text Mining.
If its a single text document and some analysis has to be done on it, you can go for Text Analysis.
Please refer the below link
Or else between the documents can be handled using Text Mining.