首页 > 解决方案 > 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'});

如果有人可以帮助我解决这个问题,那将非常有帮助。谢谢你。

标签: performanceneo4jcypherneo4j-apoc

解决方案


推荐阅读