Sitecore 玻璃贴图器未返回所有结果
我正在努力使用GlassMapper,在谷歌上几乎找不到什么。我的类具有一个属性,该属性应获取所有后代新闻文章:Sitecore 玻璃贴图器未返回所有结果,sitecore,glass-mapper,sitecore8.1,Sitecore,Glass Mapper,Sitecore8.1,我正在努力使用GlassMapper,在谷歌上几乎找不到什么。我的类具有一个属性,该属性应获取所有后代新闻文章: [SitecoreQuery(".//*[@@templateid='{6F15C485-CA13-4352-A411-7F36447CC879}']", IsRelative = true, IsLazy = true)] IEnumerable<IArticle> DescendantArticles { get; set; } 还是没有骰子。如果我尝试: [Sit
[SitecoreQuery(".//*[@@templateid='{6F15C485-CA13-4352-A411-7F36447CC879}']", IsRelative = true, IsLazy = true)]
IEnumerable<IArticle> DescendantArticles { get; set; }
还是没有骰子。如果我尝试:
[SitecoreQuery("./2015/*/*[@@te...
我会得到2015年的所有文章,所以它们都会被发表,但当我试图得到很多的时候,我仍然只得到前200篇文章(2010-2011!)。我试过改变:
<setting name="Query.MaxItems" value="100" />
没有结果。恐怕我错过了什么。请帮忙 由于您正在运行Sitecore查询,因此返回的项目数受到
查询的限制。MaxItems
设置的限制:
<!-- Query.MaxItems
Specifies the max number of items in a query result set.
If the number is 0, all items are returned. This may affect system performance, if a
large query result is returned.
This also controls the number of items in Lookup, Multilist and Valuelookup fields.
Default value: 100
-->
<setting name="Query.MaxItems" value="100"/>
Sitecore.config
中的该值依次由Sitecore.ExperienceExplorer.config
中的设置进行修补,该设置将该值设置为260,这已在Sitecore 8.1中更新。这就是为什么您只返回了那么多的项目
要么增加这个值,要么最好重新评估代码以使用ContentSearchAPI。将此值调得过高将对性能产生负面影响。由于您正在运行Sitecore查询,因此返回的项目数受
查询的限制。MaxItems
设置:
<!-- Query.MaxItems
Specifies the max number of items in a query result set.
If the number is 0, all items are returned. This may affect system performance, if a
large query result is returned.
This also controls the number of items in Lookup, Multilist and Valuelookup fields.
Default value: 100
-->
<setting name="Query.MaxItems" value="100"/>
Sitecore.config
中的该值依次由Sitecore.ExperienceExplorer.config
中的设置进行修补,该设置将该值设置为260,这已在Sitecore 8.1中更新。这就是为什么您只返回了那么多的项目
要么增加这个值,要么最好重新评估代码以使用ContentSearchAPI。将此值调得过高会对性能产生负面影响。太好了!谢谢,太好了!非常感谢。