An SPI class of type org.apache.lucene.codecs.PostingsFormat with name 'Lucene50' does not exist.报错
记录一次使用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.报错相关推荐
- A SPI class of type org.apache.lucene.codecs.PostingsFormat with name 'Lucene40' does not exist.
简单的建立索引和查询索引并不难,关键在于他的二次开发,让他适合你自己的需求 既然要二次开发就必须查看源码 首先看看索引过程中的核心类吧: IndexWriter 这个是核心组件, 建立和打开索引,以及 ...
- 解决Element type “web-app“ must be followed by either attribute specifications, “>“ or “/>“.报错问题
开始配置web-xml文件中遇到以下问题: 上网上借鉴了下别人的解决方案,有说是因为标签之间没有加空格,却并没有实质性的解决问题. 之后将<!DOCTYPE...dtd">这一标 ...
- MyBatis:Type interface com.xxx.dao.xxxMapper is not known to the MapperRegistry报错解决方案
目录 问题原因 解决方案 问题原因 如图显示所报的异常: 由于我们刚改成接口时忘记在xxxMapper.xml文件中对namespace修改接口的名称所导致的错误发生.这是我没改之前的截图: 解决方案 ...
- Ignite(五)-报错class org.apache.ignite.IgniteCheckedException: No network addresses found-解决方法
Ignite-报错class org.apache.ignite.IgniteCheckedException: No network addresses found-解决方法 具体报错 源码Debu ...
- 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,基 ...
- 遇到问题---eclipse--java--tomcat运行web项目报错Licensed to the Apache Software Foundation (ASF) under one or m
情况 有一个老的tomcat web项目 使用的是 springMVC的框架,需要放到k8s中运行,所以添加了spring boot的相关包,在本地使用eclipse的tomcat进行web调试时 报 ...
- SpringBoot 封装返回类报错:No converter found for return value of type
封装完毕Result返回类,使用PostMan测试时报错 {"timestamp": "2020-06-03T10:38:03.144+0000"," ...
- MindSpore报错 sth should be initialized as a Parameter type in ...
系统环境 Hardware Environment(Ascend/GPU/CPU): ALL Software Environment: MindSpore version (source or bi ...
- Linux上安装Apache环境及安装过程报错解决方案toastr弹框
一.Linux上安装Apache环境及安装 下载apache源代码 1.下载地址:http://httpd.apache.org/download.cgi 找稳定的最新的版本(Stable Rele ...
最新文章
- optee的RPC流程的代码详解
- .net读写 更新 删除(操作)xml文件
- 结对编程前对队友程序的分析与对比总结
- html iframe 播放视频播放,播放iframe视频点击链接javascript
- sql参数化还是被注入了_SQL注入是什么?
- hdu1257 最少拦截系统【想了好久】
- as_hash ruby_Hash.merge(other_hash)方法与Ruby中的示例
- yii2 smarty php,Yii2-smarty的一些小坑
- 《社交网站界面设计(原书第2版)》——3.6 指纹或Bio指纹
- fork,你拿什么证明你的写时拷贝(COW)
- 鸡蛋掉落----经典dp(动态规划)
- 三维空间点到线段的距离
- 【人工生态系统优化算法】基于人工生态系统优化算法求解单目标优化问题附matlab代码
- iPhone6分辨率与适配
- 2008世界GDP排名
- Win10下的一些常用快捷键
- 教你ZBrush中的笔触
- Tomcat系列:Tomcat版本与JDK版本对应关系
- 杰里之AI(692X系列)篇
- 人工智能:第十章 机器视觉