【问题标题】:SharePoint Online Search RefinementFilters with combination of and & or operatorSharePoint Online Search RefinementFilters 与 and & or 运算符的组合
【发布时间】:2022-01-25 22:49:34
【问题描述】:

我正在与 SharePoint-Online 搜索中的细化过滤器作斗争。 从规范中,我看不到如何组合和 & 或运算符来获得我的结果。

要求显示来自给定日期范围和特定公司的所有新闻,以及来自同一日期范围但带有强制性标志的这些新闻。

以下细化过滤器正在工作,我从给定日期范围内的某家公司获得新闻:

and(owstaxIdGesellschaft:59a24508-cbb1-4149-83ed-fda83136be6e,FirstPublishedDate:range(2021-01-01T23:00:00.000Z,2021-12- 15T15:58:00.408Z))

现在我还想获得具有相同日期范围的强制标志的那些新闻,但我不知道如何将其组合到前面提到的过滤器中。

我尝试了以下方法但无济于事:

and(owstaxIdGesellschaft:59a24508-cbb1-4149-83ed-fda83136be6e,FirstPublishedDate:range(2021-01-31T23:00:00.000Z,2021-12- 15T15:58:00.408Z)) (and(owstaxIdVerpflichtend:396fd210-ed3c-423e-a6fd-8d2ec90a3cb7,FirstPublishedDate:range(2021 -01-31T23:00:00.000Z,2021-12-15T15:58:00.408Z)))

这不会返回任何结果。

查询模板:FileExtension:aspx IsDocument:true PromotedState:2 Refiners: owstaxIdGesellschaft,FirstPublishedDate,owstaxIdVerpflichtend

知道如何组合和&或吗?

【问题讨论】:

    标签: search sharepoint-online


    【解决方案1】:

    我想,我找到了。 解决方案是首先使用 or。

    (and(owstaxIdGesellschaft:59a24508-cbb1-4149-83ed-fda83136be6e,FirstPublishedDate:range(2021-01-01T23: 00:00.000Z,2021-12-15T15:58:00.408Z)),and(owstaxIdVerpflichtend:396fd210-ed3c-423e-a6fd-8d2ec90a3cb7,FirstPublishedDate:range( 2021-01-01T23:00:00.000Z,2021-12-15T15:58:00.408Z)))

    通过这个查询,我现在得到了我想要的。:来自给定日期范围和给定公司的所有新闻,以及来自同一日期范围的强制标志 (owstaxIdVerpflichtend) 到 yes 的这些新闻。

    来自spec,我不清楚。

    这可能对其他人有帮助,罗尼

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-12-17
      • 2021-12-04
      • 1970-01-01
      • 2014-05-30
      • 2013-05-23
      相关资源
      最近更新 更多