教程集 www.jiaochengji.com
教程集 >  脚本编程  >  java  >  正文 Solr multiple values encountered for non multiValued copy

Solr multiple values encountered for non multiValued copy

发布时间:2016-11-23   编辑:jiaochengji.com
教程集为您提供Solr multiple values encountered for non multiValued copy 等资源,欢迎您收藏本站,我们将为您提供最新的Solr multiple values encountered for non multiValued copy 资源
下面我们一起来看关于Solr \"multiple values encountered for non multiValued copy 错误问题解决办法。

解决办法:

将复制的目标字段设为多值:

<table width="620" align="center" border="0" cellpadding="1" cellspacing="1" style="background:#FB7"> <tr> <td width="464" height="27" bgcolor="#FFE7CE"> 代码如下</td> <td width="109" align="center" bgcolor="#FFE7CE" style="cursor:pointer;" onclick="doCopy('copy7109')">复制代码</td> </tr> <tr> <td height="auto" colspan="2" valign="top" bgcolor="#FFFFFF" style="padding:10px;" class="copyclass" id=copy7109>

<field name="text" type="textComplex" indexed="true" stored="true" multiValued="true" />

org.apache.solr.common.SolrException: ERROR: [doc=12682] multiple values encountered for non multiValued copy field text: 体育中心街
at org.apache.solr.update.DocumentBuilder.toDocument(DocumentBuilder.java:132)
at org.apache.solr.update.AddUpdateCommand.getLuceneDocument(AddUpdateCommand.java:77)
at org.apache.solr.update.DirectUpdateHandler2.addDoc(DirectUpdateHandler2.java:215)
at org.apache.solr.update.processor.RunUpdateProcessor.processAdd(RunUpdateProcessorFactory.java:69)
at org.apache.solr.update.processor.UpdateRequestProcessor.processAdd(UpdateRequestProcessor.java:51)
at org.apache.solr.update.processor.DistributedUpdateProcessor.doLocalAdd(DistributedUpdateProcessor.java:569)
at org.apache.solr.update.processor.DistributedUpdateProcessor.versionAdd(DistributedUpdateProcessor.java:705)
at org.apache.solr.update.processor.DistributedUpdateProcessor.processAdd(DistributedUpdateProcessor.java:435)
at org.apache.solr.update.processor.LogUpdateProcessor.processAdd(LogUpdateProcessorFactory.java:100)

您可能感兴趣的文章:
Solr multiple values encountered for non multiValued copy
solr从数据库导入数据的例子
jQuery的实现原理的模拟代码 -4 重要的扩展函数 extend
jQuery extend 的简单实例
vbs读取Excel文件的代码
jQuery文件上传插件 Multiple File Upload
GO语言学习:使用io.copyN实现网络文件传输
jQuery源码分析-03构造jQuery对象-源码结构和核心函数
jquery核心功能分析
ASP.NET/Perl.NET 数据库访问例子

[关闭]
~ ~