Home > database >  Problems about secondary/Cypher matching language, many-to-many relationships query, query more cond
Problems about secondary/Cypher matching language, many-to-many relationships query, query more cond

Time:02-25


Business logic basis:
On the basis of the above said red node disease name khaki point said symptoms,
A node corresponding to one or more yellow or red a disease may have a variety of symptoms,
The same
A khaki node corresponding to one or more red nodes that have the same symptoms may be multiple disease,
Only relationship between nodes and node from the

Business requirements:
Query at the same time satisfy the multiple symptoms of the disease
Such as query: both disease with symptoms of headache and fever node
 match p=(a) - [r] - (b) where b.n ame [' headache ', 'hot'] in return a limit of 5 


Such as query: both disease with symptoms of headache, fever cough runny nose node
 match p=(a) - [r] - (b) where b.n ame in [' headache ', 'hot', 'nose', 'cough'] return a limit of 5 


After actual operation found it only can match in the list of the first symptoms of the disease namely can't meet the list of all symptoms at the same time,
In the hope that a solution,
  • Related