1

我正在研究 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. 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://

你能帮忙吗,为什么我会遇到这个问题以及解决方法是什么?

4

3 回答 3

2

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

于 2011-09-26T12:52:01.750 回答
2

谢谢大家,我现在开始工作了。唯一的问题是 schema.xml。

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

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

于 2011-09-27T08:16:08.370 回答
0

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

我建议你这样做。

于 2011-09-29T10:11:21.320 回答