-
{{ results | length }} passage{% if results | length > 1 %}s{% endif %} trouvé{% if results | length > 1 %}s{% endif %}
+
+ {% if results_data and results_data.results %}
+
+
+
+ {{ results_data.total_chunks }} passage{% if results_data.total_chunks > 1 %}s{% endif %} trouvé{% if results_data.total_chunks > 1 %}s{% endif %}
+
+
+ {% if results_data.mode == "hierarchical" %}
+
+ 🌳 Recherche hiérarchique ({{ results_data.sections|length }} sections)
+
+ {% else %}
+
+ 📄 Recherche simple
+
+ {% endif %}
+
{% if author_filter or work_filter %}
-
—
- {% if author_filter %}
-
{{ author_filter }}
- {% endif %}
- {% if work_filter %}
-
{{ work_filter }}
- {% endif %}
+
+
+ {% if author_filter %}
+ {{ author_filter }}
+ {% endif %}
+ {% if work_filter %}
+ {{ work_filter }}
+ {% endif %}
+
{% endif %}
- {% for result in results %}
+
+ {% if results_data.mode == "hierarchical" and results_data.sections %}
+ {% for section in results_data.sections %}
+
+
+
+
+ {% if section.chunks %}
+
+ {% for chunk in section.chunks %}
+
+
+ ⚡ {{ chunk.similarity }}% similaire
+
+
"{{ chunk.text }}"
+
+ Type : {{ chunk.unitType or '—' }} │
+ Langue : {{ (chunk.language or '—') | upper }} │
+ Index : {{ chunk.orderIndex or '—' }}
+
+ {% if chunk.keywords %}
+
+ {% for kw in chunk.keywords %}
+ {{ kw }}
+ {% endfor %}
+
+ {% endif %}
+
+ {% endfor %}
+
+ {% endif %}
+
+ {% endfor %}
+
+
+ {% else %}
+ {% for result in results_data.results %}