Check for doc type before using global setting.
Use pre-set types for wiki stream.