1、导入jar包
<dependency>
<groupId>org.apache.solr</groupId>
<artifactId>solr-solrj</artifactId>
<version>4.10.2</version>
</dependency>
<dependency>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
<version>1.1</version>
</dependency>
2、Spring配置文件中定义solr的bean
<!--定义solr的server-->
<bean + id);
solrServer.deleteById(String.valueOf(id));
solrServer.commit();

}

相关文章:

  • 2022-02-10
  • 2022-01-07
  • 2021-10-27
  • 2021-08-21
  • 2022-02-08
  • 2022-01-07
  • 2022-01-12
  • 2021-09-28
猜你喜欢
  • 2021-07-28
  • 2021-10-27
  • 2022-01-16
  • 2021-12-14
  • 2021-12-04
  • 2021-08-17
相关资源
相似解决方案