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