2011-09-26 74 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字段,因此文档无法被索引。