在Drupal Search上找不到在solr上索引的内容形式N​​utch

时间:2016-11-23 10:14:42

标签: solr drupal-7 nutch

我已经从nutch(1.12)抓取数据并将内容索引到apache solr(4.10.4)并且我已将drupal(7)内容索引到同一核心上的apache solr。但是在搜索索引内容时该网站我只能获得从drupal索引的内容。在搜索时找不到从apache nutch索引的内容。以下是从Drupal和Nutch索引的示例内容。

Drupal内容索引到Solr:

{
        "id": "atrpeb/node/1",
        "site": "http://localhost/drupal-7.51/",
        "hash": "atrpeb",
        "entity_id": 1,
        "entity_type": "node",
        "bundle": "article",
        "bundle_name": "Article",
        "ss_language": "und",
        "path": "node/1",
        "url": "http://localhost/drupal-7.51/node/1",
        "label": "lorem",
        "spell": [
          "lorem",
          " dsgdsghjghjityjh dgsag ",
          "dgsag"
        ],
        "content": " dsgdsghjghjityjh dgsag ",
        "teaser": " dsgdsghjghjityjh dgsag ",
        "ss_name": "admin",
        "tos_name": "admin",
        "ss_name_formatted": "admin",
        "tos_name_formatted": "admin",
        "is_uid": 1,
        "bs_status": true,
        "bs_sticky": false,
        "bs_promote": true,
        "is_tnid": 0,
        "bs_translate": false,
        "ds_created": "2016-11-03T10:18:22Z",
        "ds_changed": "2016-11-03T10:18:22Z",
        "ds_last_comment_or_change": "2016-11-03T10:18:22Z",
        "im_field_tags": [
          1
        ],
        "tid": [
          1
        ],
        "im_vid_1": [
          1
        ],
        "sm_vid_Tags": [
          "dgsag"
        ],
        "tm_vid_1_names": [
          "dgsag"
        ],
        "_version_": 1551771958829383700,
        "timestamp": "2016-11-23T07:11:02.052Z"
},

Nutch Content索引到Solr:

{
        "id": "http://www.apple.com/apple-pay/",
        "url": "http://www.apple.com/apple-pay/",
        "content": "Apple Pay - Apple Open Menu Close Menu Apple Shopping Bag Apple Mac iPad iPhone Watch TV Music Support Search
                apple.com Shopping Bag Make secure purchases in stores, in apps, and
                now on the web.",
        "spell": [
                "Apple Pay - Apple Open Menu Close Menu Apple Shopping Bag Apple Mac iPad iPhone Watch TV Music Support Search apple.com Shopping Bag Make secure purchases in stores, in apps, and now on the web."
        ],
        "_version_": 1551772050149867500,
        "timestamp": "2016-11-23T07:12:28.977Z"
},

0 个答案:

没有答案