1 Star 2 Fork 4

JavaPub/SpringBoot-javapub

Create your Gitee Account
Explore and code with more than 13.5 million developers,Free private repositories !:)
Sign up
文件
This repository doesn't specify license. Please pay attention to the specific project description and its upstream code dependency when using it.
Clone or Download
contribute
Sync branch
JavaPub md 44dd26c 3 years ago
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README

[toc]

elasticsearch 整合 springboot 新闻搜索

  1. 携带es用户名密码

功能

文档类

获取文档 删除文档 更新文档 批量增删改 根据查询删除 根据查询更新 重建索引 词组分析,只能针对一个文档 多个文档的词组分析

搜索类

搜索建议

索引类

增删查改 设置索引

别名类

增删查改


测试

docker构建elasticsearch

启动&初始化

  1. 启动
  2. 请求 初始化索引、导入测试数据
    1. http://127.0.0.1:8081/internal/init?type=news

head可视化插件安装

http://mobz.github.io/elasticsearch-head/

附加阅读

  1. 配置文件加载顺序,properties->yml,加载读取到配置则停止。

参考

https://blog.csdn.net/datuanyuan/article/details/109143900

https://github.com/datuanyuan/search.git

计划

  1. 初始化springboot(全局返回值)
  2. 构建数据的增删查改
  3. 定时采集并提取写入一部分数据-爬虫
  4. word2vec 接入并做简单使用
  5. 接入全链路日志
  6. 接入监控,整合普罗米修斯
  7. 实现每秒写入大批量数据的一些优化
  8. 实现切面日志
  9. 打包 docker 部署,基于 docker-compose
  10. 接入 flink 用于清洗数据
  11. 可视化页面-技术栈 待定

目标:开箱即用、基于更少的依赖也可以先运行起来。

愿景:发展为一个可供初学者参考的搜索项目,提供一个有源码、有参考的文档。

马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/rodert/SpringBoot-javapub.git
git@gitee.com:rodert/SpringBoot-javapub.git
rodert
SpringBoot-javapub
SpringBoot-javapub
main

Search