Added mode of operation (for nodes doc, pdf) to extract a piece of text with the search words