标签:
@
using
Kooboo.CMS.Content.Models
@
using
Kooboo.CMS.Search
@{ var result = Repository.Current.Search(
"Dolor"
, 1, 10); }
@result.TotalItemCount
@
foreach
(var item
in
result)
{
<p>@item.Title @item.HighlightedTitle</p>
<p>@item.HighlightedBody</p>
}
Kooboo 加Search功能 必须先ReBuild Index Data
标签:
原文地址:http://www.cnblogs.com/haoliansheng/p/4217195.html