Google自定义搜索优化以获取最新结果 [英] Google custom search refinement for newest results

查看:100
本文介绍了Google自定义搜索优化以获取最新结果的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我的网站上使用了google自定义搜索引擎.

I'm using a google custom search engine on my website.

在此自定义搜索中我有两个改进

I have two refinements on this custom search

精炼1:在我的博客上进行搜索 改进2:在我朋友的博客上搜索

Refinement 1: searches on my blog Refinement 2: searches on a blog of my friend

但是我需要进行第三次优化,以搜索两个网站的最新结果或最近24小时的结果.

but I need a third refinement which searches for newest results of both websites, or the results of last 24 hours.

我可以添加一些运算符来做到这一点吗?

Can I add some operator to the refinement which can do this?

还是有其他方法可以实现?

Or is there some other way to achieve it?

推荐答案

多站点优化

创建搜索两个网站的优化方法有两种.

Multi-site Refinement

There are two ways to create a refinement that searches both sites.

  1. 在新的优化对话框中,选择仅搜索选择的站点"单选按钮.然后,确保将此新标签分配给您的网站和朋友的博客(控制面板">站点...").

  1. In the new refinement dialog, select the "Search only select sites" radio button. Then, make sure you assign this new label to your website and your friend's blog (Control Panel > Sites ...).

您还可以使用

You could also perform the same filter by using the or operator to include both sites with the new label. In the last text field enter: site:yourURL.com OR site:friendsURL.com. This will cause any search to be performed on only those two sites.

这两种方法都经过测试,可以正常工作.

Both methods were tested and work correctly.

此外,您还可以搜索过去24小时内的帖子.但是,目前尚不清楚如何将其集成到自定义搜索中,因为只能通过查询URL来使用.

Also, you can search posts in the last 24 hours. However, it's not immediatly clear how to integrate this into custom search since this can only be use via the query URL.

5.1.3. tbs = qdr:按时间段限制结果

有了Google发布的搜索选项,您现在可以限制搜索了 时间段的结果.格式如下:

With Google's release of Search options you can now limit your search results by time period. The format is as follows:

&tbs=rltm:1 [real time results] 
&tbs=qdr:s [past second] 
&tbs=qdr:n [past minute] 
&tbs=qdr:h [past hour] 
&tbs=qdr:d [past 24 hours (day)]
&tbs=qdr:w [past week] 
&tbs=qdr:m [past month] 
&tbs=qdr:y [past year]

这篇关于Google自定义搜索优化以获取最新结果的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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