Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • pattern: a regex for matching storage unit names.
  • priority: a number with the template priority in the template list. 0 is the highest priority. Calling template/list will return all templates sorted by priority.
  • settings: the content processing modules configuration as described in Configure Storage Unit.
  • contentProcessing: flag to enable/disable content processing triggers. If enabled, modules configured in settings will execute for the configured scopes.
  • encryptContent: flag to enable/disable content encryption.
  • compressContent: flag to enable/disable content compression.
  • reprocessingQueue: flag to enabled/disable background reprocessing.
Code Block
languagetextjs
themeRDark
PUT template/add/<template-name>
{
    "pattern":"*_test",
    "priority":0,
    "settings":{
        "modules" : {
            "connector" : [
                {
                    "module" : "FieldMapping"
                }, 
                {
                    "settings" : {
                        "elasticsearch-index" : "srindex",
                        "elasticsearch-type" : "srdoc"
                    },
                    "module" : "HTTPESPublisher"
                }
            ]
        },
        "settings" : {
            "elasticsearch-hosts" : "localhost:9200",
            "elasticsearch-use-ssl" : false,
            "elasticsearch-bulk-size" : "1mb"
        }
    },
	"contentProcessing":true,
	"encryptContent":true,
	"compressContent":true,
	"reprocessingQueue":true
}

...