https://github.com/lightweight-component/aj-zincsearch-sdk
A ZincSearch Java Client
https://github.com/lightweight-component/aj-zincsearch-sdk
zincsearch
Last synced: 12 months ago
JSON representation
A ZincSearch Java Client
- Host: GitHub
- URL: https://github.com/lightweight-component/aj-zincsearch-sdk
- Owner: lightweight-component
- License: apache-2.0
- Created: 2024-06-13T02:28:10.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-06-25T04:04:54.000Z (almost 2 years ago)
- Last Synced: 2025-01-16T21:25:06.392Z (over 1 year ago)
- Topics: zincsearch
- Language: Java
- Homepage:
- Size: 12.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://central.sonatype.com/artifact/com.ajaxjs/aj-zincsearch-sdk)
[](https://dev.ajaxjs.com/docs/javadoc/aj-zincsearch-sdk/)
[](http://www.apache.org/licenses/LICENSE-2.0.txt)
[](mailto:frank@ajaxjs.com)
[](https://shang.qq.com/wpa/qunwpa?idkey=3877893a4ed3a5f0be01e809e7ac120e346102bd550deb6692239bb42de38e22)
# ZincSearch Java 客户端
Tutorial: https://blog.csdn.net/zhangxin09/article/details/129337698.
Java Documents: https://dev.ajaxjs.com/docs/javadoc/aj-zincsearch-sdk/.
## Install
```xml
com.ajaxjs
aj-zincsearch-sdk
1.0
```
## Usage
FTP upload:
```java
DocumentService docService = new DocumentService();
docService.setApi("http://localhost:4080");
docService.setUser("admin");
docService.setPassword("Complexpass#123");
Map 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);
```