我想调用 2 个不同的过程,并将输出组合在一个密码查询中以进行进一步匹配。可能吗?
因此,为了更清楚地说明:
- 我创建了一个手动索引,我在查询中使用了该索引
call apoc.index.search("myindex","searchterm")
- 我也有一些自己的过程,我想与上面的apoc.index.search一起使用。
所以我会用这样的东西
call
apoc.index.search("myindex","searchterm") and my.own.procedure("searchterm")
yield both resultsets
有什么办法可以做到这一点吗?
感谢您@cybersam的评论。我已经找到了如何使用两个过程调用。就我而言,它是:
```
CALL my.own.procedure(params) YIELD node as molecule, score as score
CALL apoc.index.search('search-index',{keyword}) YIELD node as finding
MATCH (molecule)<-[:CONTAINS]-(d:Document)
MATCH (finding)--(d)
RETURN d
```