摘要: 错误代码 下述中用用到的api方法 .should() 相当于 or, .must() 相当于 and @Autowired private ElasticsearchTemplate elasticsearchTemplate; ... List<Integer> list = Arrays.as 阅读全文
posted @ 2022-07-12 16:04 山河永慕~ 阅读(2535) 评论(0) 推荐(1) 编辑
摘要: 创建索引 { "mappings": { "properties": { "id": {"type":"keyword"}, "pname": {"type":"text", "analyzer": "ik_max_word", "search_analyzer": "ik_max_word","f 阅读全文
posted @ 2022-07-12 15:55 山河永慕~ 阅读(1222) 评论(0) 推荐(0) 编辑