{% 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_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_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 %}