`

SolrException: multiple values encountered for non multiValued field msg_content

阅读更多
private String[] content;

	@Field("msg_content")
	public void setContent(String[] content)
	{
		this.content = content;
	}


在使用实体类进行索引添加的时候, 就报了这个错误。

原因是没有在solr/home/conf/schema.xml文件中设置msg_content为
multiValued="true"

设置之后就没有这个问题了。
分享到:
评论

相关推荐

    µVISION: Error: Encountered an improper argument

    标题中的"µVISION: Error: Encountered an improper argument"是一个在使用Keil µVision集成开发环境时可能会遇到的问题提示。这个错误通常意味着在执行某些操作或者仿真过程中,软件遇到了无法识别或者不合法的...

    Error: Encountered an improper argument 官方解决办法

    Download the attached file and extract it to the folder C:\Keil_v5\UV4. If you have installed PK51 to a different folder, you need to adapt the path accordingly. The file UV4.exe is replaced with ...

    fmod 音频库 c++ Qt编写

    在游戏开发领域,音频效果的重要性不言而喻,它能够极大地提升玩家的沉浸感和游戏体验。FMod音频库就是这样一款强大的工具,专为游戏开发者设计,提供了丰富的音频处理功能和灵活的API接口。本文将深入探讨FMod音频...

    JSqlparser4.4版作者提供的应急版,解决无法解析mysql中JSON_OBJECT函数存在其它函数问题

    如下sql,JSON_OBJECT函数中存在CAST...Caused by: net.sf.jsqlparser.parser.ParseException: Encountered unexpected token: "SELECT" <K_SELECT> at line 18, column 10. Was expecting one of: "!" "(" "NOT

    英语作文万能的模板和万能句型汇总.doc

    - 描述问题:"Recently, we've encountered a pressing issue—_____, which is escalating rapidly." - 详述现状:"Notably, _____." - 提出解决方案:"To address this, we could adopt several strategies. ...

    SDK manager

    SDK Manager是Android开发环境中不可或缺的工具,用于管理和下载Android SDK的各种组件,如系统映像、平台工具、构建工具等。这个工具对开发者来说至关重要,因为它允许他们根据项目需求选择和更新所需的Android SDK...

    Keil v5 Error: Encountered an improper argument 个人实测解决办法

    Keil v5 Error: Encountered an improper argument 个人实测解决办法 实测运行正常咯,再也不出现仿真关不了debug情况了

    An Analog Electronics Companion: Basic Circuit Design for Engineers and Scientists

    An Analog Electronics Companion: Basic Circuit Design for Engineers and Scientists Publisher: Cambridge University Press | ISBN: 0521687802 | edition 2007 | PDF | 668 pages | 11,21 mb Engineers and ...

    minimal_perl_for_unix_and_linux_people.pdf

    edge of Perl, the greatest programming language I’d ever encountered (before or since). While reading a variety of books on the subject, I was surprised that the authors felt obliged to delve into so...

    WsdlReader

    【WsdlReader】是一个工具,主要用于在C#编程环境下便捷地读取并使用Web服务(Web Service)的代理类。这个工具对于开发者来说是学习和理解如何与Web服务交互的一个重要参考。通过WsdlReader,程序员可以自动化处理...

    fatal-HttpRequestException encountered.zip

    git报错,fatal: HttpRequestException encountered解决方案,如压缩包内所示。

    MDK Error: Encountered an improper argument 官方解决办法

    Keil-MDK Error Encountered an improper argument 问题解决办法实测有效,此问题属于keil的软件bug,在mdk5.2x版本中普遍出现,最新的mdk5.26版本也没有解决此软件bug,所以分享此解决办法让更多人免于受此问题困扰...

    Encountered-an-improper-argument问题方法

    keil升级5.25pre(临近几个...会提示Error: Encountered an improper argument 主要解决办法就是替换UV4.exe,可以将低版本中的UV4.exe直接替换 具体操作看:https://blog.csdn.net/u011624093/article/details/80880708

    delphixe7 android二维码扫描ZXing

    【标题】"Delphi XE7 Android二维码扫描ZXing"涉及的是在Delphi XE7环境下,使用ZXing库开发Android应用,实现二维码和条形码的扫描功能。ZXing,全称为“Zebra Crossing”,是一款开源的多平台条码读取库,支持多种...

    nginx-1.25.0.zip

    nginx/Windows-1.25.0 ... Nginx(发音为“engine X”[9] /ˌɛndʒɪnˈɛks/ EN-jin-EKS),风格化为NGIИX,是一个Web服务器,也可以用作反向代理,负载平衡器,邮件代理和HTTP缓存。该软件由Igor Sysoev创建,并于...

    3_golden_ratio.zip_For The Taking_Knott_dodecahedron

    The golden ratio, also known as the divine proportion, golden mean, or golden section, is a number often encountered when taking the ratios of distances in simple geometric figures such as the ...

    PB的error_number列表

    **函数中遇到负值 (Negative Value Encountered in Function)** - **错误编号:** 5 - **描述:** 当函数期望非负数输入但实际接收到负数时发生。 - **示例:** `ls_msg = ""` ##### 6. **指定无效的数据窗口行/列...

    Cody‘s_Data_Cleaning_Techniques_Using_SAS_(Second_Edtion)

    - **Creating a Macro to Search for Specific Numeric Values**: Provides guidance on creating a macro to automate the search for specific numeric values. #### Working with Dates This section covers ...

    acpi控制笔记本风扇转速

    AcpiExec: Implemented full region support for multiple address spaces. SpaceId is now part of the REGION object. BZ 429 ---------------------------------------- 11 October 2006. Summary of changes ...

Global site tag (gtag.js) - Google Analytics