mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-27 04:19:04 +08:00
Adding Index name to the view model (#8077)
This commit is contained in:
committed by
Sébastien Ros
parent
870754a0df
commit
5b5eda6ae3
@@ -87,7 +87,8 @@ namespace Orchard.Search.Controllers {
|
|||||||
StartPosition = (pager.Page - 1) * pager.PageSize + 1,
|
StartPosition = (pager.Page - 1) * pager.PageSize + 1,
|
||||||
EndPosition = pager.Page * pager.PageSize > searchHits.TotalItemCount ? searchHits.TotalItemCount : pager.Page * pager.PageSize,
|
EndPosition = pager.Page * pager.PageSize > searchHits.TotalItemCount ? searchHits.TotalItemCount : pager.Page * pager.PageSize,
|
||||||
ContentItems = list,
|
ContentItems = list,
|
||||||
Pager = pagerShape
|
Pager = pagerShape,
|
||||||
|
IndexName = index
|
||||||
};
|
};
|
||||||
|
|
||||||
//todo: deal with page requests beyond result count
|
//todo: deal with page requests beyond result count
|
||||||
|
|||||||
@@ -6,5 +6,6 @@
|
|||||||
public int EndPosition { get; set; }
|
public int EndPosition { get; set; }
|
||||||
public dynamic ContentItems { get; set; }
|
public dynamic ContentItems { get; set; }
|
||||||
public dynamic Pager { get; set; }
|
public dynamic Pager { get; set; }
|
||||||
|
public string IndexName { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user