diff options
Diffstat (limited to 'python')
-rw-r--r-- | python/vespa/vespa/templates/schema.txt | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/python/vespa/vespa/templates/schema.txt b/python/vespa/vespa/templates/schema.txt new file mode 100644 index 00000000000..a16e7c2775c --- /dev/null +++ b/python/vespa/vespa/templates/schema.txt @@ -0,0 +1,28 @@ +schema {{ schema_name }} { + document {{ document_name }} { + {% for field in fields %} + field {{ field.name }} type {{ field.type }} { + {% if field.indexing %} + indexing: {{ field.indexing_to_text }} + {% endif %} + {% if field.index %} + index: {{ field.index }} + {% endif %} + } + {% endfor %} + } +{% for key, value in fieldsets.items() %} + fieldset {{ key }} { + fields: {{ value.fields_to_text }} + } +{% endfor %} +{% for key, value in rank_profiles.items() %} + rank-profile {{ key }} { + {% if value.first_phase %} + first-phase { + expression: {{ value.first_phase }} + } + {% endif %} + } +{% endfor %} +}
\ No newline at end of file |