The to_idx method returns a string containing the document in IDX format.
to_idx
to_idx()
(String). Returns the document as a string.