报错:The import org.wltea.analyzer.lucene.IKAnalyzer cannot be resolved LuceneSearch.java
1. 首先使用git下载,具体地址是:https://github.com/lostsquirrel/ik-analyzer
2.进入目录,要安装到本地Maven repository
mvn install -Dmaven.test.skip=true
3.添加Maven
<dependency>
<groupId>org.wltea.ik-analyzer</groupId>
<artifactId>ik-analyzer</artifactId>
<version>5.1.0</version>
</dependency>