{% from "_partials.html" import status_pill, fresh_label %} {% if not q %}
type a query to search
hybrid retrieval — semantic + keyword · status-aware · ranked
try: {% for ex in example_queries %} {% endfor %}
{% elif not results %}
{% if total == 0 %}
nothing indexed yet
run trovex index <repo> to point trovex at your markdown, then search
{% else %}
no results for "{{ q }}"
{% if has_filters %}
filtered by {% if kind %}kind {{ kind }}{% endif %}{% if tags %}{% if kind %} · {% endif %}{{ tags | length }} tag{{ '' if tags|length == 1 else 's' }}{% endif %}
✕ clear filters & retry
{% else %}
try shorter or different keywords · semantic matching prefers short concepts
{% endif %} {% endif %}
{% else %} {% set n_canonical = results | selectattr('status', 'equalto', 'canonical') | list | length %} {% set n_stale = results | selectattr('status', 'equalto', 'stale') | list | length %} {% set n_dup = results | selectattr('status', 'equalto', 'duplicate') | list | length %}
{{ total_results }} result{{ '' if total_results == 1 else 's' }}{% if pages > 1 %} · page {{ page }}/{{ pages }}{% endif %}{% if elapsed_ms %} · {{ elapsed_ms }}ms{% endif %} {% if n_canonical %}{{ n_canonical }} canonical{% endif %} {% if n_stale %}{{ n_stale }} stale{% endif %} {% if n_dup %}{{ n_dup }} duplicate{% endif %}
{% if facets %}
refine {% for f in facets %}{{ f.tag }}{{ f.count }}{% endfor %}
{% endif %} {% if pages > 1 %}
{% if prev_url %}← prev{% else %}← prev{% endif %} page {{ page }} / {{ pages }} {% if next_url %}next →{% else %}next →{% endif %}
{% endif %} {% endif %}