mirror of
https://github.com/veops/cmdb.git
synced 2025-08-08 12:11:46 +08:00
v1 vsersion
This commit is contained in:
27
templates/search.xml
Normal file
27
templates/search.xml
Normal file
@@ -0,0 +1,27 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<responce>
|
||||
<numfound>{{ numfound }}</numfound>
|
||||
<page>{{ page }}</page>
|
||||
<cis>
|
||||
{% for ci in result %}
|
||||
<ci type="{{ ci['_type'] }}" id="{{ ci['_id'] }}" type_name="{{ ci['ci_type'] }}" >
|
||||
{% for k, v in ci.items() %}
|
||||
{% if not k.startswith('_') %}
|
||||
{% for item in v | convert_to_list %}
|
||||
<attribute name="{{ k }}">{{ item }}</attribute>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</ci>
|
||||
{% endfor %}
|
||||
</cis>
|
||||
<facets>
|
||||
{% for k,v in facet.items() %}
|
||||
<facet attribute="{{ k }}">
|
||||
{% for item in v %}
|
||||
<value name="{{ item[0] }}">{{ item[1] }}</value>
|
||||
{% endfor %}
|
||||
</facet>
|
||||
{% endfor %}
|
||||
</facets>
|
||||
</responce>
|
Reference in New Issue
Block a user