A template file specifies how the data returned from a database is converted into documents, for indexing into your text index. This section describes how to construct template files.