安装和配置 apache Solr - 在以下节点上索引失败,缺少所需的字段实体类型
我正在 Pressflow Drupal 6、Debian、Apache2、PHP 5.3.3 环境上工作。尝试在其上设置 Solr。遵循步骤 9。安装并配置 apache Solr http://groups.drupal.org/pantheon/mercurywiki
- 安装 Tomcat6
- 安装 Apache Solr
- drush dl apachesolr
- 将 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://
您能帮忙吗,为什么我会遇到这个问题以及如何解决?
I am working on Pressflow Drupal 6, Debian, Apache2, PHP 5.3.3 environment. Trying to set up Solr on it. Followed step 9. Install and Configure apache Solr http://groups.drupal.org/pantheon/mercurywiki
- Install Tomcat6
- Install Apache Solr
- drush dl apachesolr
- move Drupal specific config and schema files to solr/conf/
Now when I run cron
50% of the site has been indexed. There are 50 items left to index.
After that it fires an Apache Solr error (in '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://
Can you please help, why i am getting this issue and what is fix ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
从错误看来,entity_type 是核心架构中定义的必填字段。
提供给 solr 的数据似乎没有entity_type 字段,因此文档无法索引。
From the error it seems entity_type is a required field defined in the schema for the core.
The data fed to solr does not seem to have entity_type field and hence the documents fail to be indexed.
谢谢大家,我现在已经可以使用了。唯一的问题是 schema.xml。
还有另一个 Drupal 7 站点在同一服务器上运行,所以我需要更改 schema.xml。 D7 和 D6 架构文件不同。
现在它正在工作......非常感谢
Thanks all, I got it working now. the only issue was schema.xml.
There is another Drupal 7 site running on same server which, so i need to change schema.xml. D7 and D6 schema files are different.
Now its working ..... thanks very much
你最好以多站点方式配置apachesolr,这很简单。所以每个站点都会使用不同的方案。
http://drupalconnect.com /blog/steve/configuring-apache-solr-multi-core-drupal-and-tomcat-ubuntu-910
我建议你这样做。
you'd better to configure apachesolr in multisiting way, it's easy. so each site will be using different schemes.
http://drupalconnect.com/blog/steve/configuring-apache-solr-multi-core-drupal-and-tomcat-ubuntu-910
I recommend you to do it.