To filter a document
Set the OPENMode property to 6 (index-only mode).
6
Open the document that you want to filter. See Open for more information.
Use the GetNextTextBuffer method to get the text buffers.