10 2024 档案
ES查询常用语法
摘要:1. ElasticSearch之查询返回结果各字段含义执行命令:索引库名称/_search空搜索的结果为: { "took": 2, # 该命令请求花费了多长时间,单位:毫秒。 "timed_out": false, # 搜索是否超时 "_shards": { # 搜索分片信息 "total":
阅读全文
MySQL和Elasticsearch使用场景
摘要:来源:https://www.zhihu.com/question/637732937ES的底层实现:倒排索引正排索引(Forward Index)的实现方式为,通过文档ID去查找整个文档内容,适用于全部文档遍历或根据某个文档ID查找内容的场景。而倒排索引(Inverted Index)的实现方式,
阅读全文
Android为页面添加水印、dp、px、sp互转
摘要:来源:https://blog.csdn.net/fantasy_lin_/article/details/97651171https://blog.51cto.com/u_16213318/11745242为了能够方便地在任意页面上加水印,所以应该采取用Java代码来实现,而不是在XML布局文件里
阅读全文
The instance of entity type 'xxx' cannot be tracked because another instance with the same key value for {'xxx'} is already being tracked.
摘要:参考:https://blog.csdn.net/qq_18638761/article/details/107833999https://www.cnblogs.com/stgp/p/12294454.html发生的原因,在CheckProductionCode()方法中根据主键id查询对象时没有
阅读全文
iframe自动宽高 window.postMessage机制
摘要:参考:https://blog.csdn.net/m0_46613429/article/details/139351299https://juejin.cn/post/7298670864441901056https://blog.csdn.net/weixin_46661464/article/
阅读全文
.NET压缩zip、.NET解压zip
摘要:参考:https://blog.csdn.net/zhaotianff/article/details/141156035 using System.IO.Compression; namespace XCG.Commons { public class ZipUtil { /// <summary
阅读全文
java解压rar,解压zip
摘要:解压zip package com.xcg.webapp.common; import java.io.File; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; imp
阅读全文
C#执行cmd命令
摘要:private async void btnInstallPackage_Click(object sender, EventArgs e) { string msg = await Task.Run(() => { return executeCmd(); }); UpdateMsg(msg);
阅读全文