{% macro render_feature(index_id, cluster_id, feature_id, field, value, score, context, highlight_feature_id=None) %}
{{ field }}
{{ value }}
{{ ("{:.2e}").format(score) }}
{%- endmacro %} {% macro render_cluster(index_id, cluster_id, features, cluster_score=None, highlight_cluster_id=None, highlight_feature_id=None, context='index') -%}
Cluster {{ cluster_id }} {% if cluster_score is not none %}- {{ "{:.2e}".format(cluster_score) }}{% endif %}
{% if context == "index" %} {% endif %}
{%- endmacro %} {% macro render_context_search(index_id, fields, cluster_id=None) -%} {%- endmacro %} {% macro render_passage(passage) -%}
{% for field, values in passage.items() %} {% for value in values %}
{{field}}
{{value}}
{% endfor %} {% endfor %}
{%- endmacro %} {% macro render_single_result(doc_html, matching_context) -%} {% if result_type == 'concordances' %} {{ render_all_field_matches(results) }} {% elif result_type == 'passage' %} {% else %} {% endif %} {%- endmacro %} {% macro render_all_field_matches(matches) %} {% for doc_key, doc_id, field_matches in matches %} {% set doc_loop = loop %} {% for field, matches in field_matches.items() %} {% set field_loop = loop %} {% for value, concordances in matches.items() %} {% if doc_loop.changed(doc_key) %} {% endif %} {% if field_loop.changed(field) %} {% endif %} {% endfor %} {% endfor %} {% endfor %}
Documents and properties matching the query.
Document Field Value Concordances
{{ doc_key }}{{ field }}{{ value }} {% if concordances %}
    {% for line in concordances %}
  • {{ line }}
  • {% endfor %}
{% endif %}
{%- endmacro %} {% macro render_search_result(doc, matches, snippets) -%} {% if snippets %}
Snippets {% for snippet in snippets %}

{{ snippet }}

{% endfor %}
{% endif %}
{% for field, values in matches.items() %}
{{ field }}
{% for value in values %} {{ value }} {% endfor %}
{% endfor %}
{{doc}}
{%- endmacro %}