【问题标题】:Restrict Google custom search by date range but keep default sorting?按日期范围限制 Google 自定义搜索但保持默认排序?
【发布时间】:2017-09-27 13:11:09
【问题描述】:

我想运行谷歌自定义搜索并应用日期范围限制。我可以使用带有“sort=date:r:20160101:20170101”之类的“sort”属性来执行此操作,但这似乎不仅按日期限制数据,而且还应用按日期排序(我没有想要)。

文档声明您可以应用多个排序属性(逗号分隔),因此我想先按默认排序选项进行排序,然后再应用日期范围过滤器作为第二个“排序”。我希望这能实现我想要的。

有谁知道默认排序选项是什么,或者我如何在不影响结果集排序的情况下应用日期范围过滤器?

我一直在查看这些文档:

https://developers.google.com/custom-search/docs/structured_search#sort_by_attribute https://developers.google.com/custom-search/docs/structured_search#restrict_to_range

【问题讨论】:

    标签: google-custom-search google-apis-explorer


    【解决方案1】:

    它总是默认为相关性。转到设置,搜索功能,高级,然后按日期检查排序

    【讨论】:

      猜你喜欢
      • 2015-06-27
      • 2015-12-01
      • 2016-07-07
      • 2011-09-04
      • 2017-01-08
      • 1970-01-01
      • 2018-12-30
      • 1970-01-01
      • 2013-01-14
      相关资源
      最近更新 更多