我一直在升级一个项目,自从安装了最新版本的 Visual Studio 2019 后发现以下文件正在输出到磁盘
MyProjectName.GeneratedMSBuildEditorConfig.editorconfig
我认为这与 roslyn 编译器有关,并在此提交中引入:https : //github.com/dotnet/roslyn/commit/de348c5a77977459a4138de0a62487e00980e28a#diff-e87b4990385fcfea44bb8ad2f3
关于这个文件是什么、它做什么以及它是否应该在源代码控制中或被排除,已经出现了明显的问题。我知道 .editorconfig 文件是干什么用的,但这个文件出乎意料。我的搜索一无所获。任何人都可以对此有所了解吗?
有没有办法将关系从一个节点复制或移动到另一个节点?
我的情况与此类似:
和这里:
假设我在图表中有这种模式
(a)-[r:FOO]->(b)
(a)<-[r2:BAR]-(c)
Run Code Online (Sandbox Code Playgroud)
然后我有另一个节点,(d)它可能是也可能不是副本(a).我的想法是,从功能的角度来看节点是否重复并不重要.我希望能够移动或复制关系r:FOO,r2:BAR以便图表现在包含
(d)-[r:FOO]->(b)
(d)<-[r2:BAR]-(c)
Run Code Online (Sandbox Code Playgroud)
如果我在复制时合并节点,那么我希望能够移动关系而不是复制,然后(可能选择)删除(a).请注意,有多种关系类型,我不确定类型是什么.我意识到我可以分阶段做到这一点,但是如果在一个密码查询中有一种有效的方法可以做到这一点会很棒.我当前的策略是这样的(不是确切的语法,只是为了给出一个想法)
// get all outgoing relationships
MATCH (a:Label1 { title : 'blah' })-[r]->(o)
RETURN r
// returns FOO and BAR
// for each relationship type, create one from (d) and copy the properties over
MATCH (a:Label1 { title : 'blah' })-[r:FOO]->(o), (d:Label1 { title : 'blah blah' })
CREATE (d)-[r2:FOO]->(o)
SET r2 = r
...etc...
// now do the …Run Code Online (Sandbox Code Playgroud) 我已经使用Nest成功获得了结果和重点,但是如果我包含两个要搜索高亮的字段,它只使用构造elasticsearch查询的最后一个字段.例如以下
.Query(qry => qry
.QueryString(qs => qs
.Query(qString)
)
)
.Highlight(h => h
.PreTags("<b>")
.PostTags("</b>")
.OnFields(f => f
.OnField("Title")
.OnField("Summary")
)
)
Run Code Online (Sandbox Code Playgroud)
意味着我只获得从"摘要"字段返回的高亮显示.如果我使用等效查询直接查询elasticsearch,我可以从两个字段中检索突出显示.例如
{
"query": {
"query_string": {
"query": "apple"
}
},
"highlight": {
"pre_tags": ["<b>"],
"post_tags": ["</b>"],
"fields": {
"Title": {},
"Summary": {}
}
}
}
Run Code Online (Sandbox Code Playgroud)
有可能用Nest做到这一点吗?难道我做错了什么?
我输入
http://localhost:7474/user/neo4j
Run Code Online (Sandbox Code Playgroud)
在网络浏览器上,我收到消息:
{
"errors" : [ {
"message" : "No authorization header supplied.",
"code" : "Neo.ClientError.Security.AuthorizationFailed"
} ]
}
Run Code Online (Sandbox Code Playgroud)
我在neo4j上搜索文档,它说:
Authenticate by sending a username and a password to Neo4j using HTTP Basic Auth. Requests should include an Authorization header, with a value of Basic <payload>, where "payload" is a base64 encoded string of "username:password".
Example request
GET http://localhost:7474/user/neo4j
Accept: application/json; charset=UTF-8
Authorization: Basic bmVvNGo6c2VjcmV0
Example response
200: OK
Content-Type: application/json; charset=UTF-8
Run Code Online (Sandbox Code Playgroud)
我正在使用Web浏览器查看信息,如何在Web浏览器(Firefox)中"包含授权标题"?我不明白它说的是什么.如何输入这些示例请求?