查了好多文档,无奈都是基于solr 4的,文档和源码对不上。好不容易在google上找到了一篇外文,虽然是针对solr5的,但是我试过了,solr6也同样适用。赶紧记录下来,不容易啊
1.在solr-6.1.0\solr目录下运行ant server
2.在solr-6.1.0目录下运行ant idea
3.Idea中File->Open Project->solr-6.1.0\solr
4.运行Data Import Handler Example
E:\software\java web\solr\solr-6.1.0-idea\solr-6.1.0\solr\bin>solr -f -a “-Xdebu
g -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=4044” -port 8984 -e d
ih
停止运行
solr stop -p 8984
5.在Idea中Debug as Remote
参考文献
http://opensourceconnections.com/blog/2015/04/30/debugging-solr-5-in-intellij/
在Idea下编译solr 6.1源码
最新推荐文章于 2022-04-09 00:13:15 发布