Term Vector Setting in Mapping

I'm trying to setup an index template to turn on term vectors for a specific field in the mapping. Unfortunately, the documenation isn't very specific about how I add the setting.

Here is the link: https://www.elastic.co/guide/en/elasticsearch/reference/current/search-request-highlighting.html

The example provided is:

{
"type_name" : {
"content" : {"term_vector" : "with_positions_offsets"}
}
}

Where is this supposed to be placed in the mapping? This seems to be a consistent problem with the documentation. There are tons of "snippets" that get dropped in some place. However there is often no good "full" example that shows exactly where those snippets get dropped or how they work together.

It may be bad form to anwser my own question, but I think I found the answer here: https://www.elastic.co/guide/en/elasticsearch/reference/current/mapping-core-types.html

It looks like I need to add "term_vector" : "with_positions_offsets" to the field for which I want term vectors in the mapping.