{% extends "isearch/base.html" %} {% block title %}Проверка поиска{% endblock %} {% block viewer_active %}active{% endblock %} {% block container %}
{{ form.as_table() }}

Результаты

{% if abovemeta_url %}
Запрос в abovemeta
{% endif %} {% if result %} {% if result.errors %}

Ошибки

{% for error in result.errors %} {{ error.code }}: {{ error.text }} {% endfor %}
{% endif %} {% if result.errata %}

errata

{{ result.errata|to_json }}
{% endif %}

search_results

Нашлось документов: {{ result.meta.count }}

{% if result.meta.count > 0 %}

Переколдованный запрос: {{ result.results.backend.text }}

Запрос в бекенд

Страница {{ result.meta.page }} из {{ result.meta.pages }}

    {% if result.results.docs %} {% for doc in result.results.docs %}
  1. {% with doc=doc, name='search_results', form=form %} {% include "isearch/search/include/doc.html" %} {% endwith %}
  2. {% endfor %} {% else %} {% for group in result.results.groups %}
  3. {{ group.category.attr }} ({{ group.category.name }}): {{ group.category.value }}

    {% for doc in group.docs %} {% with doc=doc, name='search_results', form=form %} {% include "isearch/search/include/doc.html" %} {% endwith %} {% endfor %}
  4. {% endfor %} {% endif %}
{% if paginator and paginator.num_pages > 1 %} {% endif %}
{% if result.facets %} {% endif %}
{% endif %}

{% for wizard in result.wizards %} {% set name = 'wizard_%s' % wizard.position %}

{{name}} [{{ wizard.type }}]

Нашлось документов: {{ wizard.count }}

Позиция: {{ wizard.position }}

Переколдованный запрос: {{ wizard.backend.text }}

Запрос в бекенд

    {% for doc in wizard.docs %}
  1. {% with doc=doc, name='search_results', form=form %} {% include "isearch/search/include/doc.html" %} {% endwith %}
  2. {% endfor %}

{% endfor %} {% else %} {% if response_error %}
STATUS_CODE: {{ response_error.status_code }}
{{ response_error.content }}
{% endif %} {% endif %}
{% endblock %}