安装和配置apache Solr -在以下节点上索引失败,缺少必需的字段实体类型


Install and Configure apache Solr - Indexing failed on following nodes, missing required field entity type

我在Pressflow Drupal 6, Debian, Apache2, PHP 5.3.3环境下工作。在上面安装Solr。遵循步骤9。安装和配置apache Solr http://groups.drupal.org/pantheon/mercurywiki

  1. 安装Tomcat6
  2. 安装Apache Solr
  3. 删除apachesolr
  4. 移动Drupal特定的配置和模式文件到solr/conf/

现在当我运行cron

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

之后触发Apache Solr错误(在'Reports log entry'中)

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://

你能帮助我,为什么我得到这个问题和修复是什么?

从错误来看,entity_type似乎是在模式中为核心定义的必填字段。
提供给solr的数据似乎没有entity_type字段,因此文档无法被索引。

谢谢大家,我现在可以用了。唯一的问题是schema.xml。

有另一个Drupal 7站点运行在同一服务器上,所以我需要改变schema.xml。D7和D6模式文件不同

现在它工作.....非常感谢

您最好以多站点的方式配置apachesolr,这很容易。所以每个站点将使用不同的方案。http://drupalconnect.com/blog/steve/configuring - apache solr -多-核心- drupal -和- tomcat - ubuntu - 910