The text_to_docs function splits a file into multiple documents. The original document is discarded.


text_to_docs( doc, sectionName, filename)


Argument Description
doc (LuaDocument) The document that you want to divide into multiple documents.
sectionName (string) The name of the section in the CFS configuration file that contains the TextToDocs configuration parameters. For information about these parameters, refer to the Connector Framework Server Reference.
filename (string) The file that contains the text to be converted (the original file that resulted in the document).


LuaDocuments. A list of document objects representing the documents that are produced.