Tutorial: https://blog.csdn.net/zhangxin09/article/details/129337698.
Java Documents: https://dev.ajaxjs.com/docs/javadoc/aj-zincsearch-sdk/.
<dependency>
<groupId>com.ajaxjs</groupId>
<artifactId>aj-zincsearch-sdk</artifactId>
<version>1.0</version>
</dependency>
FTP upload:
DocumentService docService = new DocumentService();
docService.setApi("http://localhost:4080");
docService.setUser("admin");
docService.setPassword("Complexpass#123");
Map<String, Object> doc = ObjectHelper.hashMap("title", "AIGC带你看来自“天涯海角”的新种子");
doc.put("content", "央视新闻《开局之年“hui”蓝图》系列微视频,用AI视角,带您看两会。\r\n" + "\r\n"
+ "目前,**的水果产量稳居世界第一,国人的“果盘子”琳琅满目,瓜果飘香。而作为全球第一的肉类生产和消费大国,近十多年来,全国居民牛羊肉消费量也持续提升。未来的水果产业和牛羊养殖业什么样?让我们跟随AIGC,感受从田间走到舌尖的“新科技”。");
ZincResponse resp = docService.create(target, doc);
assertNotNull(resp);
resp = docService.create(target, doc, 2l);
assertNotNull(resp);