我们可以将默认左侧的图例位置更改为右侧或底部吗?
我们如何在鼠标指针上实现悬停,内容应该显示在鼠标指针而不是其他DIV中
- 我们创建了一个具有以下设置和映射的索引。
PUT http://localhost:9200/essearch
{
"mappings": {
"object": {
"_all": {
"enabled": false
},
"properties": {
"content": {
"type": "text",
"term_vector": "with_positions_offsets",
"similarity": "classic",
"analyzer": "content_standard"
},
"content_phonic": {
"type": "text",
"term_vector": "with_positions_offsets",
"similarity": "classic",
"analyzer": "content_phonetic"
},
"content_stemming": {
"type": "text",
"term_vector": "with_positions_offsets",
"similarity": "classic",
"analyzer": "content_stemming"
}
}
}
},
"settings": {
"index": {
"number_of_shards": "1",
"similarity": {
"default": {
"type": "classic"
}
},
"max_result_window": "50000",
"mapper": {
"dynamic": "false"
},
"analysis": {
"filter": {
"content_phonetic": {
"type": "phonetic", …Run Code Online (Sandbox Code Playgroud) 我们有一个表,其中一列为文本数据类型,并且只有 3 条记录。我们使用 ExecuteNonQuery() 对文本列执行更新查询,它会抛出错误“从流读取时出现异常”。错误是随机发生的,这意味着有时会执行查询,有时会抛出错误,但最大比例是错误,例如十分之九会抛出错误。我们正在使用Npgsql -Version 4.0.4 并PostgreSQL version 11.1运行在windows 2012 R2
. 另外,我们尝试将超时设置为 0,但错误会立即抛出,因此它也与超时错误无关。下面是我们的例外情况。
at Npgsql.NpgsqlReadBuffer.<>c__DisplayClass31_0.<g__EnsureLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Npgsql.NpgsqlConnector.<>c__DisplayClass161_0.<g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Npgsql.NpgsqlDataReader.d__46.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task …Run Code Online (Sandbox Code Playgroud) 我有一个字典,键是整数类型,值是字符串类型
核心价值
1 - “A”
2 - “乙”
3 - "c"
4 - “D”
5 - “E”
我有一个字符串类型的数组
{"A","D","E"}
现在我想匹配字典和数组以使用字典键生成以下输出
1:真 4:真 5:真
在上面的输出中,整数表示字典键值“A”在数组中匹配,即:- 1=true