v1 vsersion

This commit is contained in:
pycook
2016-01-01 09:40:47 +08:00
committed by pycook
parent 1edd1ee71a
commit 2d8264ab6f
56 changed files with 5503 additions and 0 deletions

27
templates/search.xml Normal file
View 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>