上一页 1 ··· 16 17 18 19 20 21 22 23 24 ··· 30 下一页
摘要: 一、添加引用 1、添加owin引用 版本:1.0.0.02、添加 Microsoft.Owin.Security.Cookies 版本:4.1.0 3、添加System.IdentityModel.Tokens.Jwt 版本:5.6.04、添加Microsoft.Owin.Security.Open 阅读全文
posted @ 2020-02-11 10:32 星星c# 阅读(1606) 评论(11) 推荐(0)
摘要: GET _analyze { "tokenizer" : "standard", "text" : "this is a test 13544478956" } GET _analyze { "tokenizer" : "standard", "filter": [{"type": "length" 阅读全文
posted @ 2020-01-17 10:17 星星c# 阅读(3604) 评论(0) 推荐(0)
摘要: MySql.Data.MySqlClient.MySqlException (0x80004005) Out of memory (Needed*** 上面是当时的报错信息, 下面是解决方法: 将数据库连接配置里的连接池设置为true (;Pooling=true) ***hou;SslMode=N 阅读全文
posted @ 2020-01-15 15:58 星星c# 阅读(426) 评论(0) 推荐(0)
摘要: 在Elasticsearch.Net里的使用方法如下: 阅读全文
posted @ 2020-01-08 17:30 星星c# 阅读(822) 评论(0) 推荐(0)
摘要: 先看一下,下面是C#实现提取小括号内的内容的示例代码 string str = "aaaaaaaaa(bbbbbb) 121 (fdsa) 121(aa)2121jlkoihj"; string pattern = @"\(.*?\)";//匹配模式 Regex regex = new Regex( 阅读全文
posted @ 2019-12-31 10:50 星星c# 阅读(3505) 评论(0) 推荐(0)
摘要: 1、建立一个新的类库并写一个类:ImageButton,代码如下: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Windows; using Sy 阅读全文
posted @ 2019-12-27 15:58 星星c# 阅读(2190) 评论(0) 推荐(1)
摘要: WildCard GET /people/_search { "query":{ "wildcard":{ "firstName":"japa*" } } } 上面的可以使用问号和星号两个形式的查询,下面是解释: ?, which matches any single character 匹配任意个 阅读全文
posted @ 2019-12-25 17:23 星星c# 阅读(5179) 评论(1) 推荐(2)
摘要: 查询年龄在20-25之间的,包括20岁,但不包括25岁的 阅读全文
posted @ 2019-12-25 17:16 星星c# 阅读(1115) 评论(0) 推荐(0)
摘要: 一、创建索引和Mapping(注意一定要指定分词器 analyzer,要不然第三步的查询,就查询不正确(但使用ElasticJsonClient可以),在这个问题上折腾了很久很久直到怀疑人生) 二、生成索引下的数据 三、查询代码 四、也可以使用lowLevel的形式传值 阅读全文
posted @ 2019-12-25 11:28 星星c# 阅读(686) 评论(0) 推荐(0)
摘要: mget的英文意思是:Multi Get API 允许我们一次get大量的document mget 查询是基于index,type(可选),id三个条件进行(必须要有index和id) mget不能用来查询 1、不指定索引的使用方式 2、指定索引的使用方式 阅读全文
posted @ 2019-12-23 17:00 星星c# 阅读(504) 评论(0) 推荐(0)
上一页 1 ··· 16 17 18 19 20 21 22 23 24 ··· 30 下一页