重复事件中未显示搜索结果 [英] Search result is not showing in Recurrence events
问题描述
使用管理页面使用开始日期"和结束日期"搜索日历"事件.正常事件显示在搜索结果中.但是,重复事件未显示搜索结果
在下面的DateRangesOverlap骆驼查询中,是否有任何传递日期和截止日期字段的选项.
query.Query = < Where>< DateRangesOverlap>< FieldRef Name ='EventDate'/>< FieldRef Name ='EndDate'/>< FieldRef Name ='RecurrenceID'/>< Value Type ='DateTime '><月/></Value></DateRangesOverlap></Where>'';
query.ExpandRecurrence = true;
query.CalendarDate = DateTime.Now.AddMonths(2);
The Calendar events are searched using From Date and To Date using an admin page. Normal events are displayed in the search result. However Recurrence events are not showing the search result
Is there any option to pass from and To date fields in the below DateRangesOverlap Camel Query.
query.Query = "<Where><DateRangesOverlap><FieldRef Name='EventDate' /><FieldRef Name='EndDate' /><FieldRef Name='RecurrenceID' /><Value Type='DateTime'><Month /></Value></DateRangesOverlap></Where>";
query.ExpandRecurrence = true;
query.CalendarDate = DateTime.Now.AddMonths(2);
推荐答案
以下博客供您参考:
如何查找日期范围内的重叠项
How to find overlapping items for a date range
https://pholpar. wordpress.com/2011/11/11/how-to-find-overlapping-items-for-a-date-range/
或者作为一种解决方法,我们可以在代码中过滤集合.
Or as a workaround, we can filter the collection in Code.
丹尼斯
这篇关于重复事件中未显示搜索结果的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!