测试通了删除es文档

This commit is contained in:
chenxudong 2025-04-03 14:39:40 +08:00
parent 2a0886c7ce
commit 059a417001
2 changed files with 16 additions and 16 deletions

View File

@ -1,17 +1,18 @@
# spring framework
spring.application.name=electromagnetic-data
spring.datasource.typd=com.alibaba.druid.pool.DruidDataSource
spring.jackson.time-zone=GMT+8
spring.servlet.multipart.max-file-size=500MB
spring.servlet.multipart.max-request-size=500MB
spring.mvc.async.request-timeout=3600000
#mysql
spring.datasource.url=jdbc:mysql://139.196.179.195:3306/em_data_dev?serverTimezone=UTC&useUnicode=true&characterEncoding=utf-8&useSSL=true&serverTimezone=GMT%2B8&allowMultiQueries=true&rewriteBatchedStatements=true
spring.datasource.username=em_user_dev
spring.datasource.password=Szsd#2O25$dev
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
spring.datasource.type=com.alibaba.druid.pool.DruidDataSource
spring.jackson.time-zone=GMT+8
spring.servlet.multipart.max-file-size=500MB
spring.servlet.multipart.max-request-size=500MB
spring.mvc.async.request-timeout=3600000
# es
spring.elasticsearch.password=_oO*of_l-b+4mrzXo6B0
spring.elasticsearch.password=123456
spring.elasticsearch.username=elastic
spring.elasticsearch.uris=http://139.196.179.195:9200
#ai
@ -42,9 +43,9 @@ data.user.prj.path=/szsd/data/ele/prj/dev/user_project/
data.user.upload.path=/szsd/data/ele/prj/dev/user_upload/
data.user.download.path=/szsd/data/ele/prj/dev/user_download/
# repo path
data.repo.prj.path=/szsd/data/ele/prj/repo_project/
data.repo.upload.path=/szsd/data/ele/prj/repo_upload/
data.repo.download.path=/szsd/data/ele/prj/repo_download/
data.repo.prj.path=/szsd/data/ele/prj/dev/repo_project/
data.repo.upload.path=/szsd/data/ele/prj/dev/repo_upload/
data.repo.download.path=/szsd/data/ele/prj/dev/repo_download/
prj.folder.max.length=6
# backupFiles
tmp.file.store.hour=48

View File

@ -1,22 +1,21 @@
//import com.electromagnetic.industry.software.common.enums.DataOwnEnum;
//import com.electromagnetic.industry.software.common.resp.ElectromagneticResult;
//import com.electromagnetic.industry.software.manage.Application;
//import com.electromagnetic.industry.software.manage.service.EdFileInfoService;
//import jakarta.annotation.Resource;
//import org.junit.jupiter.api.Test;
//import org.springframework.ai.vectorstore.VectorStore;
//import org.springframework.boot.test.context.SpringBootTest;
//
//import javax.annotation.Resource;
//import java.util.List;
//
//@SpringBootTest(classes = Application.class)
//public class Test1 {
//
// @Resource
// private EdFileInfoService edFileInfoService;
// private VectorStore vectorStore;
//
// @Test
// public void testTree() {
// ElectromagneticResult<?> tree = edFileInfoService.tree(DataOwnEnum.USER_FILE.code);
// System.out.println("tree = " + tree);
// String id = "c32666b2-36a5-40b5-9048-11349f090cd7";
// vectorStore.delete(List.of(id));
// }
//
//}