|
@@ -26,7 +26,8 @@
|
|
|
</resultMap>
|
|
|
|
|
|
<select id="getNode" parameterType='com.diagbot.vo.KgQueryVO' resultType="com.diagbot.dto.NodeDTO">
|
|
|
- Match (n:${labelName}) where n.name STARTS WITH #{inputStr} with collect(n.name) as rows1
|
|
|
+ Match (n:${labelName}) where n.name = #{inputStr} with collect(n.name) as rows0
|
|
|
+ OPTIONAL Match (n:${labelName}) where n.name STARTS WITH #{inputStr} with rows0 + collect(n.name) as rows1
|
|
|
OPTIONAL Match (n:${labelName}) where n.name CONTAINS #{inputStr} with rows1 + collect(n.name) as rows
|
|
|
unwind rows as row
|
|
|
with distinct row as x
|