【问题标题】:Google Custom Search API (CSE) - Retrieve only discussionsGoogle 自定义搜索 API (CSE) - 仅检索讨论
【发布时间】:2013-01-07 22:12:31
【问题描述】:

我想使用 Google 自定义搜索 API 仅在讨论中进行搜索,例如使用查询字符串 &tbm=dsc。 不幸的是,API 文档中没有给出tbm 参数。

是否可以将搜索结果限制为仅讨论?

【问题讨论】:

    标签: google-api google-custom-search


    【解决方案1】:

    不,目前无法使用 CSE/GSS 进行讨论搜索。唯一的特殊搜索是image,它记录在API reference 中。您可以使用标签和Refinements 将您的搜索限制在特定网站和/或模式。

    【讨论】:

      【解决方案2】:

      无法将 Google 自定义搜索的搜索结果限制为仅讨论网站。 以防万一,请记住 Google Custom Search is for searching over one website or a collection of websites. 如果您的收藏中全是讨论网站,那似乎不太可能成为 Google 自定义搜索的目的。但是,可能有一些有用的变通方法/解决方案。

      解决方法 0

      查找或生成您感兴趣的讨论网站集合,并以此为基础create a custom search。这将实现(几乎)您所追求的相同结果。

      解决方法 1

      您也许可以使用优化标签执行重定向。 This example redirects to a Google Scholar search. 您也许可以使用 &tbm=dsc 完成相同的结果。

      <CustomSearchEngine>
        <Title>Universities</Title>
        <Context>
          <Facet>
            <FacetItem title="Papers">
              <Label name="papers" mode="FILTER"/>
              <Redirect url="http://scholar.google.com/scholar?q=$q"/>
            </FacetItem>
          </Facet>
        </Context>
      </CustomSearchEngine>
      

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2018-12-14
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多