performance - Neo4j - 在浏览器中使用全文索引对节点进行密码查询时出错
问题描述
让我用全文索引告诉我的用例:
我想在属性中找到具有相似值的节点。
我在使用全文索引查询节点时遇到了这个错误 -
询问:
MATCH (e: Email)
WITH e
CALL db.index.fulltext.queryNodes('convEmailFtIndex', e.convEmail)
YIELD node, score
RETURN e.email, node.convEmail, node.email, score ORDER BY e.email LIMIT 1000
错误:
ERROR
Neo.ClientError.Procedure.ProcedureCallFailed
Failed to invoke procedure db.index.fulltext.queryNodes: Caused by: org.apache.lucene.queryparser.classic.ParseException: Encountered "<EOF>" at line 1, column. 0.
Was expecting one of:
...
"+"...
"-"...
...
"(" ...
"*"...
...
...
...
...
...
"["...
"{"...
...
...
我的电子邮件中有一个名为 convEmail 的属性,它基本上只是电子邮件 ID 的字母,不包括数字和特殊字符。
这就是我创建全文索引的方式:
CALL db.index.fulltext.createNodeIndex('convEmailFtIndex', ['Email'], ['convEmail'], {analyzer: 'standard-no-stop-words'});
如果有人可以帮助我解决这个问题,那将非常有帮助。谢谢你。
解决方案
推荐阅读
- c# - 授权属性中接收邮件值时值为空
- python - Python SQLite DB查询每行不返回任何内容
- javascript - localStorage 不保存/显示项目
- excel - 从“-”左侧提取文本,但忽略不包含“-”的单元格
- javascript - JS window.location.href 未显示与地址栏中相同的值
- angular - 如何在 Angular 的另一个请求中使用订阅的数据
- sql-server - 查找状态字段与当前字段不同的下一条记录
- java - glTexSubImage2D() 导致 EXCEPTION_ACCESS_VIOLATION (0xc0000005) 尽管传递的数据缓冲区被确认足够长
- angular - 单个主机上的多个 Dockerized Angular 应用程序
- javascript - 将日期和小时/分钟/秒转换为正确格式的javascript