不要在GSA Adapter Framework 4.1中调用getDocContent()方法

时间:2015-09-11 04:50:27

标签: google-search-appliance

我使用GSA Adapter Framework 4.1将GSA输入。 所以,我已经测试了Google提供的文件(AdaptorTemplate.java)。

调用getDocIds()方法。(在Gsa管理控制台菜单中确认可用[内容来源>供稿])

但是没有调用getDocContent()方法。

  1. 如何设置getDocContent()方法调用?
  2. 如何在adaptor-config.properties中添加项目?
  3. [adaptor-config.properties]

    gsa.acceptsDocControlsHeader=true
    adaptor.fullListingSchedule=0 3 * * *
    adaptor.incrementalPollPeriodSecs=900
    adaptor.docContentTimeoutSecs=180
    adaptor.docHeaderTimeout=30
    adaptor.pushDocIdsOnStartup=true
    feed.maxUrls=5000
    feed.name=Adaptor_Test
    #gsa.version=7.2.0.G.286
    gsa.characterEncoding=UTF-8
    gsa.hostname=gsa.test.co.kr
    gsa.admin.hostname=gsa.test.co.kr
    journal.reducedMem=true
    gsa.scoringType=content
    server.dashboardPort=5679
    server.docIdPath=/doc/
    server.fullAccessHosts=
    server.hostname=test.co.kr
    server.maxWorkerThreads=16
    server.port=5678
    server.queueCapacity=160
    server.reverseProxyPort=5678
    server.secure=false
    server.useCompression=true
    

    [运行]

    java -cp adaptor-4.0.3-withlib.jar;examples/adaptor-4.0.3-examples.jar
    com.google.enterprise.adaptor.examples.AdaptorTemplate
    

    [运行日志]

    9월 11, 2015 1:47:28 오후 com.google.enterprise.adaptor.Application logProductVersion
    정보: Product Version: AdaptorTemplate  (unknown version)
    9월 11, 2015 1:47:28 오후 com.google.enterprise.adaptor.Application logProductVersion
    정보: Product Version: Google Adaptor Library  v4.1.0,  Google Inc.
    9월 11, 2015 1:47:28 오후 com.google.enterprise.adaptor.Application main
    정보: Version 1.7.0_55 of Java is supported.
    9월 11, 2015 1:47:28 오후 com.google.enterprise.adaptor.Config load
    정보: New configuration file loaded
    9월 11, 2015 1:47:28 오후 com.google.enterprise.adaptor.Application createHttpServer
    정보: GSA host name: gsa.test.co.kr
    9월 11, 2015 1:47:28 오후 com.google.enterprise.adaptor.Application createHttpServer
    정보: server is listening on port #5678
    9월 11, 2015 1:47:28 오후 com.google.enterprise.adaptor.Application createDashboardHttpServer
    정보: dashboard is listening on port #5679
    9월 11, 2015 1:47:29 오후 com.google.enterprise.adaptor.Application realDaemonStart
    정보: about to init com.google.enterprise.adaptor.examples.AdaptorTemplate
    9월 11, 2015 1:47:29 오후 com.google.enterprise.adaptor.DocumentHandler initFullAccess
    정보: When in secure mode, common names that are given full access to content: [gsa.test.co.kr]
    9월 11, 2015 1:47:29 오후 com.google.enterprise.adaptor.DocumentHandler initFullAccess
    정보: When not in secure mode, IPs that are given full access to content: [gsa.test.co.kr/xxx.xxx.xxx.xxx]
    9월 11, 2015 1:47:29 오후 com.google.enterprise.adaptor.GsaCommunicationHandler start
    정보: Pushing once at program start
    9월 11, 2015 1:47:29 오후 com.google.enterprise.adaptor.DocIdSender pushFullDocIdsFromAdaptor
    정보: Beginning getDocIds
    9월 11, 2015 1:47:29 오후 com.google.enterprise.adaptor.DocIdSender pushItems
    정보: Pushing items
    9월 11, 2015 1:47:29 오후 com.google.enterprise.adaptor.DocIdSender pushItems
    정보: Pushing group of 2 items
    9월 11, 2015 1:47:29 오후 com.google.enterprise.adaptor.Application main
    정보: doc content serving started
    9월 11, 2015 1:47:30 오후 com.google.enterprise.adaptor.DocIdSender pushSizedBatchOfItems
    정보: Pushing batch of 2 items to GSA
    9월 11, 2015 1:47:30 오후 com.google.enterprise.adaptor.DocIdSender pushSizedBatchOfItems
    정보: Sending items to GSA host: gsa.test.co.kr
    9월 11, 2015 1:47:30 오후 com.google.enterprise.adaptor.GsaFeedFileSender handleGsaReply
    정보: success message received. code:200
    9월 11, 2015 1:47:30 오후 com.google.enterprise.adaptor.DocIdSender pushSizedBatchOfItems
    정보: Pushing batch succeeded
    9월 11, 2015 1:47:30 오후 com.google.enterprise.adaptor.DocIdSender pushSizedBatchOfItems
    정보: Finished pushing batch of items
    9월 11, 2015 1:47:30 오후 com.google.enterprise.adaptor.DocIdSender pushItems
    정보: Pushed items
    9월 11, 2015 1:47:30 오후 com.google.enterprise.adaptor.DocIdSender pushFullDocIdsFromAdaptor
    정보: Completed getDocIds
    

1 个答案:

答案 0 :(得分:0)

检查GSA上的供稿页面,确保它处理了您发送的带有2个文档ID的供稿。 您在该Feed中发送的URL可能存在问题,或者您可能忘记将适配器的网址格式添加到GSA上的跟踪和抓取模式。