暂时没有找到solr api的定义文档,在此对使用过的api做一个记录。

1、重载core

GET http://127.0.0.1:8983/solr/admin/cores?action=RELOAD&core=mycore&wt=json

二、indexed操作

1、删除所有indexed

POST http://127.0.0.1:8983/solr/poi/update?commitWithin=1000&overwrite=true&wt=json
Content-type: text/xml
<add><delete><query>*:*</query></delete><commit/></add>

2、提交csv类型数据

POST http://127.0.0.1:8983/solr/poi/update?commitWithin=1000&overwrite=true&wt=json
Content-type: application/csv

N、Windows下的post命令

1、导入csv文件

java -Dtype=text/csv -Dc=corename -jar example\exampledocs\post.jar filename.csv

相关文章:

  • 2022-12-23
  • 2021-09-28
  • 2021-08-07
  • 2021-07-14
  • 2021-04-26
  • 2021-10-28
猜你喜欢
  • 2022-12-23
  • 2022-01-10
  • 2022-12-23
  • 2021-12-05
  • 2021-09-24
  • 2021-12-14
相关资源
相似解决方案