This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@using SolrNet; | |
@using Sitecore.ContentSearch.SearchTypes | |
@model SolrQueryResults<SearchResultItem> | |
@if (Model != null) | |
{ | |
foreach (var group in Model.Grouping) | |
{ | |
foreach (var grp in group.Value.Groups) | |
{ | |
<div class="group"> | |
<div class="group-header"> | |
@grp.GroupValue | |
</div> | |
<div class="group-item"> | |
@foreach (var item in grp.Documents) | |
{ | |
<span>@item["Name"] - @item["Language"]</span> | |
} | |
</div> | |
</div> | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment