diff options
author | tmartins <thigm85@gmail.com> | 2020-07-02 12:43:40 +0200 |
---|---|---|
committer | tmartins <thigm85@gmail.com> | 2020-07-02 12:43:40 +0200 |
commit | 49edbc6ebb6baac6eb1c402b6bcbec5136d95092 (patch) | |
tree | ae8522e52a5e39eb5d6fd916aa1108d42da3de96 /python | |
parent | 08db10b5950570373dd13851bebedae0f76f95dc (diff) |
schema template
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 |