我已经按照here所述在Tomcat上设置了Solr 3.6.2。400不良请求:未知字段'type'
使用太阳黑子护栏宝石和我没有问题嵌入式Solr的服务器,但我的临时服务器上我得到了响应:
message ERROR: [doc=Foo 20] unknown field 'type'
description The request sent by the client was syntactically incorrect.
请求数据是这样的:
<?xml version="1.0" encoding="UTF-8"?>
<add>
<doc>
<field name="id">Foo 20</field>
<field name="type">Foo</field>
<field name="type">ActiveRecord::Base</field>
<field name="class_name">Foo</field>
<field name="name">test</field>
</doc>
</add>
这是什么造成的?是否应该设置一些配置? (我期待的事情是允许使用type
这个名字,而不管这个列是否存在)
嘿已经有这个问题的解决方案 - http://stackoverflow.com/questions/13340859/cant-reindex-sunspot-solr-error-rsolrerrorhttp-500-internal-server-er –