Skip to content

Commit b578c95

Browse files
marcelometalhonzakral
authored andcommitted
Docs: Fixed IndexTemplate example
Added 'template_name' for as_template method
1 parent f22fc31 commit b578c95

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/persistence.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,7 @@ Potential workflow for a set of time based indices governed by a single template
452452
return super().save(**kwargs)
453453
454454
# once, as part of application setup, during deploy/migrations:
455-
logs = Log._index.as_template()
455+
logs = Log._index.as_template('logs')
456456
logs.save()
457457
458458
# to perform search across all logs:

0 commit comments

Comments
 (0)