2011-09-26 69 views
1

我正在Pressflow Drupal 6,Debian,Apache2,PHP 5.3.3環境中工作。嘗試在其上設置Solr。接着步驟9.安裝並配置Apache Solr的http://groups.drupal.org/pantheon/mercurywiki安裝和配置Apache Solr - 索引失敗的節點,缺少必填字段實體類型

  1. 安裝的Tomcat6
  2. 安裝Apache Solr的
  3. drush DL apachesolr
  4. 移動Drupal的特定的配置和模式文件到Solr/CONF/

現在我運行cron時

50% of the site has been indexed. There are 50 items left to index. 

,它觸發一個Apache Solr實現錯誤後(在「報告日誌條目」)

Indexing failed on one of the following nodes: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20 
"400" Status: Document_tq3l64node1_missing_required_field_entity_type: Document_tq3l64node1_missing_required_field_entity_type 


Error 400 

HTTP ERROR: 400Document [tq3l64/node/1] missing required field: entity_type 
RequestURI=/solr/iexplore/updatePowered by Jetty:// 

能否請您幫忙,爲什麼我收到這個問題,什麼是修復?

+0

嘗試在您的數據庫中找到tq3l64/node/1並查看缺少的內容。 – aitchnyu

回答

2

謝謝大家,我現在正在工作。唯一的問題是schema.xml。

還有另一個運行在同一臺服務器上的Drupal 7站點,所以我需要更改schema.xml。 D7和D6架構文件是不同的。

現在,它的工作.....非常感謝

2

從錯誤看來,entity_type是核心架構中定義的必需字段。
提供給solr的數據似乎沒有entity_type字段,因此文檔無法被索引。