摘要:
elasticsearch 通过查询修改、删除;elasticsearch 使用脚本参数修改。 阅读全文
摘要:
复制索引 先决条件 克隆索引 复制索引 复制索引 先决条件 PUT http://127.0.0.1:9200/posts/_settings Content-Type: application/json { "settings": { "index.blocks.write": true } } 阅读全文
摘要:
NEST聚合分页 Http请求 文档分页 NEST聚合分页 从代码里可以看见用的是Composite聚合,使用AfterKey可以轻松获取到分页数据。 var client = provider.GetClient(); CompositeBucketAggregate composite = nu 阅读全文
摘要:
1. 在代码中调用Hub 找到一种方法存储下connectionId,在代码中就可以通过其他凭据调用前台。 public class HubHandler { private readonly static Lazy<HubHandler> _instance = new Lazy<HubHandl 阅读全文
摘要:
1. 准备 openresty nginx程序。openresty@https://github.com/openresty/openresty 用法,文档。lua-nginx-module@https://github.com/openresty/lua-nginx-module perl 命令。 阅读全文
摘要:
问题 在使用ComboBox的输入框检索的时候,使用汉字输入法,ComboBox的Text属性没有正常更新。明明已经选中了item,但是文本框显示的不是item的text,而是用于检索的字。 解决方法 注册ComboBox的PreviewTextInput事件。 private void Cb_Pr 阅读全文
摘要:
开始 RightWindowCommand Flyout 1. 开始 app.xaml <Application.Resources> <ResourceDictionary> <ResourceDictionary.MergedDictionaries> <ResourceDictionary S 阅读全文
摘要:
bootstrap4模板 自定义HtmlHelper bootstrap4模板 _layout.cshtml @inject Microsoft.ApplicationInsights.AspNetCore.JavaScriptSnippet JavaScriptSnippet <!DOCTYPE 阅读全文
摘要:
CSS本身可以很有趣,但样式表越来越大,越来越复杂,难以维护。这是一个预处理器可以帮助。 Sass允许你使用CSS中不存在的特性,如变量,嵌套,混合,继承和其他漂亮的好东西,使CSS写的乐趣。 阅读全文
摘要:
ChatHub.cs namespace AmyChat.Hubs { public class ChatHub : Hub { UserDAL userDAL = new UserDAL(); public void Hello(string str,string val) { var userI 阅读全文