使用Search Rest API的Refinablestring日期列范围结果 [英] Refinablestring Date Column Range Results using Search Rest API

查看:62
本文介绍了使用Search Rest API的Refinablestring日期列范围结果的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们在SharePoint Online中有一个文档库,其中包含  日期
 并且它已映射到  RefinableString00  托管
属性。目前我们使用以下api url获取搜索结果

"/_api/search/query?querytext='invoce'&trimduplicates=false&selectproperties='Path,Url,Title,RefinableString00,RefinableString02,RefinableString03,RefinableString04,RefinableString05,RefinableString06,RefinableString144,RefinableString145,RefinableString01'&sourceid='xxx-xx-xx-xxxx'&rowlimit=500"


我得到  RefinableString00    3/20/2019
5:00:00 AM
 现在我想得到

I am getting the value for the RefinableString00 as 3/20/2019 5:00:00 AM Now i want to get


搜索结果基于  RefinableString00


例如最近3个月,6个月,1年和2年等......

For example last 3 months,6 months, 1 year and 2 years etc...


任何人都可以帮我这个..

Can anyone help me on this..

TARUN

推荐答案

尝试将日期列映射到DateTime属性,然后按日期范围搜索,如RefinableDate00 = 1/1 / 2019..12 / 31/2019。

Try to map your date column to DateTime property and then search by date range like RefinableDate00=1/1/2019..12/31/2019.




最好的问候,

Lee


这篇关于使用Search Rest API的Refinablestring日期列范围结果的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆