Google自定义搜索的优化功能不会重定向到其他网站. [英] Google Custom Search's refinement doesn't redirect to different website.

查看:51
本文介绍了Google自定义搜索的优化功能不会重定向到其他网站.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Google自定义搜索,并尝试使用优化功能将搜索查询重定向到其他网站.

I'm using Google Custom Search and trying to use Refinement to redirect search queries to other websites.

我遵循 https://developers.google.com/custom中的示例-search/docs/refinements#redirect ,但无效.

当我点击优化链接(标签)时,它不会重定向,而只是在同一页面上显示无结果".

When I click a refinement link (tab), instead of redirecting, it just shows "No Results" on the same page.

这是我的XML CSE上下文代码:

Here is my XML CSE Context code:

<?xml version="1.0" encoding="UTF-8" ?>
<CustomSearchEngine id="<my_search_engine_id>" creator="<my_creator_id>" language="en" encoding="UTF-8" enable_suggest="true">
  <Title>my.domain.name</Title>
  <Context>
    <Facet>
      <FacetItem title="Google Scholars">
        <Label name="google_scholars" mode="FILTER"/>
        <Redirect url="http://scholar.google.com/scholar?q=$q"/>
      </FacetItem>
    </Facet>
    <BackgroundLabels>
      <Label name="_cse_4zii28iwa6o" mode="FILTER" />
      <Label name="_cse_exclude_4zii28iwa6o" mode="ELIMINATE" />
    </BackgroundLabels>
  </Context>
  <LookAndFeel nonprofit="false" element_layout="8" theme="7" custom_theme="true" text_font="Arial, sans-serif" url_length="full" element_branding="show" enable_cse_thumbnail="true" promotion_url_length="full" ads_layout="1">
    <Logo />
    <Colors url="#008000" background="#FFFFFF" border="#FFFFFF" title="#0000CC" text="#000000" visited="#0000CC" title_hover="#0000CC" title_active="#0000CC" />
    <Promotions title_color="#0000CC" title_visited_color="#0000CC" url_color="#008000" background_color="#FFFFFF" border_color="#336699" snippet_color="#000000" title_hover_color="#0000CC" title_active_color="#0000CC" />
    <SearchControls input_border_color="#D9D9D9" button_border_color="#666666" button_background_color="#CECECE" tab_border_color="#E9E9E9" tab_background_color="#E9E9E9" tab_selected_border_color="#FF9900" tab_selected_background_color="#FFFFFF" />
    <Results border_color="#FFFFFF" border_hover_color="#FFFFFF" background_color="#FFFFFF" background_hover_color="#FFFFFF" ads_background_color="#FDF6E5" ads_border_color="#FDF6E5" />
  </LookAndFeel>
  <AdSense />
  <EnterpriseAccount />
  <ImageSearchSettings enable="true" />
  <autocomplete_settings />
  <sort_by_keys label="Relevance" key="" />
  <sort_by_keys label="Date" key="date" />
  <cse_advance_settings enable_speech="true" enable_facet_search="true" />
</CustomSearchEngine>

推荐答案

我终于从Google Enterprise支持小组获得了答案(2014年8月4日),内容如下:

I finally got an answer from the Google Enterprise Support team (4th August 2014) as follows:

否,当前不支持此功能,并且没有计划 在不久的将来也要实现此功能.我们将更新 自定义搜索不支持此功能的文档 元素代码.

"No, currently this feature is not  supported and there are no plans to implement this feature in near future as well. We will be updating the documentation that this feature is not supported in custom search element code.

您可以考虑使用XML API检索XML中的结果,进行自定义 并根据您的要求显示给最终用户."

You can consider using XML API to retrieve results in XML , customize and display to end users as per your requirement."

这篇关于Google自定义搜索的优化功能不会重定向到其他网站.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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