记录一次使用ElasticSearch报错
使用junit本地调试时,启动spring项目时,es bean 注入报错:
An SPI class of type org.apache.lucene.codecs.PostingsFormat with name ‘Lucene50’ does not exist.

项目中使用使用的es maven引用:

<dependency><groupId>elasticsearch.shaded</groupId><artifactId>es-shaded</artifactId><version>1.0-SNAPSHOT</version><exclusions><exclusion><groupId>org.elasticsearch</groupId><artifactId>elasticsearch</artifactId></exclusion></exclusions></dependency>

错误解决方式:
增加以下引用即可:

    <dependency><groupId>org.apache.lucene</groupId><artifactId>lucene-core</artifactId><version>5.5.0</version></dependency>

原因:
待查

参考:https://stackoverflow.com/questions/35066597/elasticsearch-in-a-runnable-jar-lucene-problems
http://rocketeer.leanote.com/post/dcab93e5bf35

An SPI class of type org.apache.lucene.codecs.PostingsFormat with name 'Lucene50' does not exist.报错相关推荐

  1. A SPI class of type org.apache.lucene.codecs.PostingsFormat with name 'Lucene40' does not exist.

    简单的建立索引和查询索引并不难,关键在于他的二次开发,让他适合你自己的需求 既然要二次开发就必须查看源码 首先看看索引过程中的核心类吧: IndexWriter 这个是核心组件, 建立和打开索引,以及 ...

  2. 解决Element type “web-app“ must be followed by either attribute specifications, “>“ or “/>“.报错问题

    开始配置web-xml文件中遇到以下问题: 上网上借鉴了下别人的解决方案,有说是因为标签之间没有加空格,却并没有实质性的解决问题. 之后将<!DOCTYPE...dtd">这一标 ...

  3. MyBatis:Type interface com.xxx.dao.xxxMapper is not known to the MapperRegistry报错解决方案

    目录 问题原因 解决方案 问题原因 如图显示所报的异常: 由于我们刚改成接口时忘记在xxxMapper.xml文件中对namespace修改接口的名称所导致的错误发生.这是我没改之前的截图: 解决方案 ...

  4. Ignite(五)-报错class org.apache.ignite.IgniteCheckedException: No network addresses found-解决方法

    Ignite-报错class org.apache.ignite.IgniteCheckedException: No network addresses found-解决方法 具体报错 源码Debu ...

  5. SAP QM 执行事务代码QP01,系统报错 -Material type FOOD is not defined for task list type Q-

    SAP QM 执行事务代码QP01,系统报错 -Material type FOOD is not defined for task list type Q- 商品主数据755,物料类型是FOOD,基 ...

  6. 遇到问题---eclipse--java--tomcat运行web项目报错Licensed to the Apache Software Foundation (ASF) under one or m

    情况 有一个老的tomcat web项目 使用的是 springMVC的框架,需要放到k8s中运行,所以添加了spring boot的相关包,在本地使用eclipse的tomcat进行web调试时 报 ...

  7. SpringBoot 封装返回类报错:No converter found for return value of type

    封装完毕Result返回类,使用PostMan测试时报错 {"timestamp": "2020-06-03T10:38:03.144+0000"," ...

  8. MindSpore报错 sth should be initialized as a Parameter type in ...

    系统环境 Hardware Environment(Ascend/GPU/CPU): ALL Software Environment: MindSpore version (source or bi ...

  9. Linux上安装Apache环境及安装过程报错解决方案toastr弹框

    一.Linux上安装Apache环境及安装 下载apache源代码 1.下载地址:http://httpd.apache.org/download.cgi  找稳定的最新的版本(Stable Rele ...

最新文章

  1. optee的RPC流程的代码详解
  2. .net读写 更新 删除(操作)xml文件
  3. 结对编程前对队友程序的分析与对比总结
  4. html iframe 播放视频播放,播放iframe视频点击链接javascript
  5. sql参数化还是被注入了_SQL注入是什么?
  6. hdu1257 最少拦截系统【想了好久】
  7. as_hash ruby_Hash.merge(other_hash)方法与Ruby中的示例
  8. yii2 smarty php,Yii2-smarty的一些小坑
  9. 《社交网站界面设计(原书第2版)》——3.6 指纹或Bio指纹
  10. fork,你拿什么证明你的写时拷贝(COW)
  11. 鸡蛋掉落----经典dp(动态规划)
  12. 三维空间点到线段的距离
  13. 【人工生态系统优化算法】基于人工生态系统优化算法求解单目标优化问题附matlab代码
  14. iPhone6分辨率与适配
  15. 2008世界GDP排名
  16. Win10下的一些常用快捷键
  17. 教你ZBrush中的笔触
  18. Tomcat系列:Tomcat版本与JDK版本对应关系
  19. 杰里之AI(692X系列)篇
  20. 人工智能:第十章 机器视觉

热门文章

  1. python 绘制封装函数绘制南海小地图
  2. 2022年10月全国路网数据(新增563205条道路)
  3. CCSP 2018,杭州电子科技大学,2018/10/25
  4. 二维码还能防伪?这是什么新魔法……
  5. 隐私计算推动金融转型
  6. You have no right to access this object because of bucket acl.问题解决办法
  7. Masm for Winodws 集成实验环境安装绿色免费版
  8. 计算机电磁信息泄漏及其防护
  9. 大数据Hive多字节分隔符
  10. Spring Boot 要怎么学?要学哪些东西?要不要先学 SSM?松哥说说看法