Solr资料

 1. datahubcenter 先编译server

 

mvn compile

  

2. 打成运行包

   

ant build

 

 

Debug模式启动:

./solr start  -a "-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=1044" -f

设置启动内存(3G的JVM内存):

./solr start  -a "-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=1044" -m 3g

 

 

正常启动:

  

./solr start -p 8983

 

 

1.删除索引管理界面运行,Documents节点下:

    Request-Handler (qt)     /update

 

    Document Type            XML

    Document(s)

<delete><query>*:*</query></delete>
<commit/>

 

2.重新索引:

   内容文件:

   datahubcenter/blob/master/src/main/java/com/bosyun/datahub/controller/ProductController.java

   索引URL:

   http://localhost:8983/solr/mark/fullImportProduct

 

 

你可能感兴趣的:(Solr删除索引,重新索引)