Результаты поиска документа
{% import "macro.html" as macro %} {% if 'backends' in response %} {% set backends = response['backends'] %}
{{ 'Url:' }} {{ backends['Url'] }}
{{ 'Kps:' }} {{ backends['Kps'] }}

{{ 'RtyServer' }} {% if response['backends']["RtyServer"]["Shard range"] == (-1, -1) %}
{{ 'Shard Range: ' }} {{ 'NO' }}

{{ "Document not Found" }} {% else %}
{{ 'Shard Range: ' }} {{ backends['RtyServer']['Shard range'] }} {% endif %} {% set color_by_document_hash = {} %} {% macro output_host(host_data) %} {{ host_data.hostname }} {% if host_data.document %} {{ host_data.document_hash }} {% elif host_data.error %} {{ "Error:" + host_data.error }} {% else %} {{ 'Not Found' }} {% endif %} {% endmacro %} {% if 'Shard range' in backends["RtyServer"] and backends["RtyServer"]["Shard range"] != (-1, -1) %}

{{ "Backends" }}
{% for host_data in backends['RtyServer']['Backends'] %} {{ output_host(host_data) }} {% endfor %}
{% if 'Other errors' in backends["RtyServer"] %}

{{ "Other errors" }}
{% for host_data in backends["RtyServer"]['Other errors'] %} {{ output_host(host_data) }} {% endfor %}
{% endif %} {% elif 'Errors' in backends["RtyServer"] %}

{{ 'Errors' }}
{% for host_data in backends["RtyServer"]['Errors'] %} {{ output_host(host_data) }} {% endfor %}
{% endif %} {% endif %} {% if 'ferryman' in response %} {% set flag = False %} {% for host in response['ferryman']["Ferryman hosts"] %} {% if host in response['ferryman']['Ferryman urls exception'] and not flag %}
{{ response['ferryman']["Ferryman urls"][host] }} {% set flag = True %} {% endif %} {% endfor %}

{{ "Ferryman" }}
{{ " Shard index: " + response['ferryman']["Ferryman"]["Shard index"] }} {% macro output_ferryman_table(fields) %} {% set ca = fields['action'] %} {{ fields['table_mtime'] }} {{ fields['table_path']+fields['path_padding'] }} {{ fields['doc_mtime'] }} {{ ca }} {{ fields['deadline'] }} {% endmacro %}
{{ "Tables" }}
{% for table_group_name, table_group_title in response['ferryman']["Ferryman"]["Tables"]['Table_map'] %}
{{ table_group_title }} {% set longest_table_path = response['ferryman']["Ferryman"]["Tables"][table_group_name]['longest_table_path'] %} {% set common_prefix = response['ferryman']["Ferryman"]["Tables"][table_group_name]['common_prefix'] %} {% for el in response['ferryman']["Ferryman"]["Tables"][table_group_name]['Documents'] %} {{ output_ferryman_table(el) }} {% endfor %}
{{ 'table_mtime'.ljust(19) }}{{ 'table_path'.ljust( longest_table_path - common_prefix|length) }}{{ 'doc_mtime' }}{{ 'action' }}{{ 'deadline' }}
{% endfor %} {% endif %} {% if 'yql' in response %}
Docfetcher logs
Indexerproxy logs {% endif %}