【发布时间】:2020-01-22 10:11:04
【问题描述】:
我在下面尝试了全文索引如下
CALL db.index.fulltext.queryNodes("index1", "x") YIELD node as node1, score as score1
With collect({id: node1.id, score: score1}) as rows1
CALL db.index.fulltext.queryNodes("index2", "name:Y") YIELD node as node2, score as score2
With collect({id: node2.id, score: score2}) as rows2, rows1
return rows1 + rows2 as final
如果两者都有一些记录,上面的返回结果,如果node2没有任何匹配的结果,那么即使node1的结果很少,最终结果也是空的。
我的要求是结合或联合符合任何条件的两者。你能帮我实现吗?
提前致谢。
【问题讨论】:
标签: neo4j full-text-search full-text-indexing fulltext-index