【发布时间】:2016-10-26 18:00:56
【问题描述】:
我必须搜索某些节点,如 eq.page,无论它们是否与其他节点..like 标记有关系。
If they are connected to tag nodes then search for the search string in page name and the tag names Else search for the search string in page name only
MATCH ...//nodes of certain type
WHERE
if r is null'
...//Match query without relation for searching
else
...//Match query without relation for searching
Return ...
MATCH (n:page)<-[r:pagetag]-(tag)
if r is null
then n.title CONTAINS 'java'or tag.name IN ["java"]
return distinct n.name
else n.title CONTAINS 'java'return distinct n.name
END
此查询出错。可能是语法问题。但我只想像这样搜索页面。
【问题讨论】: