Apache Solr 4 Lucene-加载类时出错';解决方案UUIDField';
尝试在my schema.xml中创建UUID字段时,我在启动Solr时遇到以下错误:Apache Solr 4 Lucene-加载类时出错';解决方案UUIDField';,apache,solr,lucene,schema,uuid,Apache,Solr,Lucene,Schema,Uuid,尝试在my schema.xml中创建UUID字段时,我在启动Solr时遇到以下错误: Plugin init failure for [schema.xml] fieldType "uuid": Error loading class 'Solr.UUIDField' 我的模式如下所示: <fields> <field name="uuid" type="uuid" indexed="true" stored="true" /> <upda
Plugin init failure for [schema.xml] fieldType "uuid": Error loading class 'Solr.UUIDField'
我的模式如下所示:
<fields>
<field name="uuid" type="uuid" indexed="true" stored="true" />
<updateRequestProcessorChain name="uuid">
<processor class="solr.UUIDUpdateProcessorFactory">
<str name="fieldName">uuid</str>
</processor>
<processor class="solr.RunUpdateProcessorFactory" />
</updateRequestProcessorChain>
<field name="id" type="string" indexed="true" stored="true" required="true"/>
<field name="address" type="text_general" indexed="true" stored="true"/>
<field name="city" type="text_general" indexed="true" stored="true" />
<field name="county" type="string" indexed="true" stored="true" />
<field name="lat" type="text_general" indexed="true" stored="true" />
<field name="lng" type="text_general" indexed="true" stored="true" termVectors="true" termPositions="true" termOffsets="true" />
<field name="price" type="float" indexed="true" stored="true"/>
<field name="bedrooms" type="float" indexed="true" stored="true" />
<field name="image" type="string" indexed="true" stored="true"/>
<field name="region" type="location_rpt" indexed="true" stored="true" />
<defaultSearchField>address</defaultSearchField>
<field name="_version_" type="long" indexed="true" stored="true"/>
<field name="text" type="text_general" indexed="true" stored="false" multiValued="true"/>
uuid
地址
然后在
<fieldType name="uuid" class="Solr.UUIDField" indexed="true" />
从
我对
部分的位置感到困惑。我觉得它不应该出现在字段声明部分。字段类可能区分大小写,try will小写solrsolr.UUIDField
:-
<fieldType name="uuid" class="solr.UUIDField" indexed="true" />
谢谢。我设法解决了这个问题。我遇到的下一个问题是elevate.xml中的示例条目产生了无效的UUID,因此必须删除这些UUID。