排序在搜索结果Web部件中不起作用! [英] Sorting not working in Search Result web part!!
问题描述
我尝试使用 ContentTypeId:0x012002 * {User.Name}在搜索结果Web部件的查询文本"中,然后由登录的用户进行讨论.我在排序"选项卡下设置了创建降序","LastModifiedTime降序",但它们确实 不行.我想按修改日期减小"对结果进行排序,但修改"列未列出.
您能提供帮助吗?
是的,这是SharePoint 2013中的一个已知问题.
这里有两种解决此问题的解决方案:
1.使用您的自定义查询创建结果源,并将搜索结果Web部件配置为使用该结果源.
2.在搜索结果Web部件属性中添加JSON排序.
如何添加JSON排序以供参考:
ows_Modified爬网属性被映射到LastModifiedTime托管属性,这意味着LastModifiedTime托管属性包含修改的列值. >
谢谢
王恩(Dean Wang)
Hi I tried using ContentTypeId:0x012002* {User.Name} in Query text of Search results web part and go the discussions items by the logged in user. I set Created Descending, LastModifiedTime Descending under Sorting Tab but they do not work. I want to sort the results by Modified Date Decending but the Modified column is not listed.
Can you assist?
Hi,
Yes, it’s a known issue in SharePoint 2013.
Here’re two solutions to fix this issue:
1. Create a result source with your custom query and configure search result web part to use this result source.
2. Add the JSON sort in search results web part properties.
How to add JSON sort for your reference:
The ows_Modified crawled property is mapped to LastModifiedTime managed property, which means that the LastModifiedTime managed property contains Modified column value.
Thanks,
Dean Wang
这篇关于排序在搜索结果Web部件中不起作用!的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!