I have been through the below article:
https://community.oracle.com/tech/developers/discussion/2179837/searching-a-string-in-a-pdf-blob
It describes how to upload a document such as a pdf or word doc as a blob into a database table and then using oracle text, search for a string in that document to tell you the document that the string is in.
I cannot find a means by which you can for example search for a string in a word document and then return the paragraph, or some text that includes that string within the document.
What if you uploaded a hundred word documents,and you wanted to use oracle text to search for any that included a string? Does Oracle Text let you reference not just the document but the paragraph your string is in?
Help appreciated, I can find no examples of this unfortunately.
You can use the CTX_DOC package for this. I will show you a short example on how to use it.
First create the table:
Next insert some PDFs, DOCs, TXTs and so on, afterwards create the index as:
Finally check this example PL/SQL anonymous procedure: