摘要: 配置清华源,加速下载相关包速度 清华镜像配置说明: https://mirror.tuna.tsinghua.edu.cn/help/anaconda/ 各系统都可以通过修改用户目录下的 .condarc文件 channels: - defaults show_channel_urls: true 阅读全文
posted @ 2020-10-02 16:45 likecs 阅读(448) 评论(0) 推荐(0) 编辑
摘要: 第一步:创建颜色搜索结构 { "color" : { "type": "nested", "properties" : { "h" : { "type" : "integer" }, "s" : { "type" : "integer" }, "v" : { "type" : "integer" } 阅读全文
posted @ 2020-10-01 23:38 likecs 阅读(461) 评论(0) 推荐(0) 编辑
摘要: Elasticsearch 数据类型全景概览 阅读全文
posted @ 2020-10-01 22:49 likecs 阅读(2416) 评论(0) 推荐(0) 编辑
摘要: 使用 crontab -e 添加如下命令:* * */5 * * find /home/wwwlogs -name '*.log' -exec rm -rf {}\;* * */5 * * find /home/wwwlogs -name '*_log' -exec rm -rf {}\;重新加载任 阅读全文
posted @ 2020-03-19 09:39 likecs 阅读(416) 评论(0) 推荐(0) 编辑
摘要: 基于GitHub的一个开源项目:https://github.com/jwyang/faster-rcnn.pytorch 环境:Ubuntu 18.04.3、python2.7,显卡NVIDIA GeForce RTX 2070,pytorch0.4.0,CUDA10.1 update2 (尝试过 阅读全文
posted @ 2019-12-24 15:47 likecs 阅读(1654) 评论(0) 推荐(0) 编辑
摘要: minimum_should_match:当operator参数设置为or时,该参数用来控制应该匹配的分词的最少数量; {"query":{ "match":{ "字段名":{ "query":"查询内容", "operator":"or", "minimum_should_match":"70%" 阅读全文
posted @ 2019-12-22 20:07 likecs 阅读(4165) 评论(0) 推荐(0) 编辑
摘要: PUT /lrtkdb { "mappings": { "properties": { "id": { "type": "keyword" }, "title": { "type": "text", "analyzer": "ik-index", "search_analyzer": "ik-smart" }, "pageimage": 阅读全文
posted @ 2019-12-18 17:00 likecs 阅读(176) 评论(0) 推荐(0) 编辑
摘要: GET /scddbmain/_search { "query": { "match_phrase": { "title":{ "query": "白色背景中国风酒文化手提袋包装设计", "slop":10 } } } } 阅读全文
posted @ 2019-12-05 10:36 likecs 阅读(449) 评论(0) 推荐(0) 编辑
摘要: elasticsearch虽然强大,但是却不能动态修改mapping ,到时候我们有时候需要修改结构的时候不得不重新创建索引; elasticsearch为我们提供了一个reindex的命令,就是会将一个索引的快照数据copy到另一个索引,默认情况下存在相同的_id会进行覆盖(一般不会发生,除非是将 阅读全文
posted @ 2019-12-04 18:27 likecs 阅读(2796) 评论(0) 推荐(0) 编辑
摘要: 1,打开kibana: GET /scddb/_analyze { "text": "蓝瘦香菇", "analyzer": "ik_max_word" //ik_smart} 测试分词效果如下,不是很理想: { "tokens" : [ { "token" : "蓝", "start_offset" 阅读全文
posted @ 2019-12-04 15:42 likecs 阅读(3094) 评论(0) 推荐(0) 编辑