If I have a MultiValueField in one of my search indexes and I want to display each value in the search results, how would I do it? It seems that something is not formatted properly, or for some reason I misunderstand MultiValueField?
class PageAttachmentIndex(indexes.SearchIndex):
Using this in my template view:
{% if result.attrs|length %} <div class="attributes"> <ul> {% for a in result.attrs %} <li class="{% cycle "clear" "" "" %}"><span class="name">{{ a.name }}</span>: <span class="value">{{ a.value }}</span></li> {% endfor %} </ul> <div class="clear"></div> </div> {% endif %}
This seems to return nothing to me :(
python django search django-haystack
nyxtom
source share