【问题标题】:Google Search Appliance - GSA - configuration issueGoogle Search Appliance - GSA - 配置问题
【发布时间】:2015-10-12 05:52:15
【问题描述】:

我想使用 GSAClient 访问我们公司的 google Search Appliance 项目并检索搜索结果,但我的配置根本不工作。

网页界面是:http://kb.juniper.net

那么为了让 GSAClientDemo 工作,我应该如何设置:

  1. 主机名
  2. SETTING_FRONTEND

我必须向 GSA 管理员询问设置吗?

// target GSA's hostname
    private static final String HOSTNAME = "kb.juniper.net";
    // query string to search for
    private static final String QUERY_STRING = "juno";
 // The value for the frontend configured for the GSA
    // (If you dont know this, ask GSA admin for correct value for your target GSA.)
    private static final String SETTING_FRONTEND = "InfoCenter";
    public static void main(String[] args) throws IOException {
        GSAClient client = new GSAClient(HOSTNAME); 
        GSAQuery query = new GSAQuery();

        // typical way to generate query term.
        GSAQueryTerm term = new GSAQueryTerm(QUERY_STRING);
        query.setQueryTerm(term);
        System.out.println("Searching for: "+query.getQueryString());

【问题讨论】:

    标签: google-search-appliance


    【解决方案1】:

    Hostname 是 GSA 域名或 ip 不需要前端

    完整的例子在这里:

    http://gsa-japi.sourceforge.net/onemin-tut.html

    【讨论】:

    • 嗯,客户端参数还是需要的
    【解决方案2】:

    我必须向 GSA 管理员询问设置吗?

    是的。您需要向您的 GSA 管理员咨询主机和前端信息。只有他们能告诉你。除非,您知道如何使用 GSA 并被允许自己获取信息。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-05-08
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多