Adding Index name to the view model (#8077)

This commit is contained in:
Robin Csutorás
2018-06-28 21:03:46 +02:00
committed by Sébastien Ros
parent 870754a0df
commit 5b5eda6ae3
2 changed files with 3 additions and 1 deletions

View File

@@ -87,7 +87,8 @@ namespace Orchard.Search.Controllers {
StartPosition = (pager.Page - 1) * pager.PageSize + 1,
EndPosition = pager.Page * pager.PageSize > searchHits.TotalItemCount ? searchHits.TotalItemCount : pager.Page * pager.PageSize,
ContentItems = list,
Pager = pagerShape
Pager = pagerShape,
IndexName = index
};
//todo: deal with page requests beyond result count

View File

@@ -6,5 +6,6 @@
public int EndPosition { get; set; }
public dynamic ContentItems { get; set; }
public dynamic Pager { get; set; }
public string IndexName { get; set; }
}
}