{"id":10304,"date":"2023-06-04T20:31:15","date_gmt":"2023-06-05T01:31:15","guid":{"rendered":"https:\/\/www.rushworth.us\/lisa\/?p=10304"},"modified":"2023-08-28T14:40:26","modified_gmt":"2023-08-28T19:40:26","slug":"neo4j-searching","status":"publish","type":"post","link":"https:\/\/www.rushworth.us\/lisa\/?p=10304","title":{"rendered":"NEO4J: Searching"},"content":{"rendered":"<p>Returning data from NEO4J is matching &#8212; we can match a node using <tt>MATCH p=(a:TOMATO {name: 'Black Krim'}) return p;<\/tt><\/p>\n<p>where the object &#8220;p&#8221; becomes a set of nodes labeled with &#8216;TOMATO&#8217; where the value of &#8216;name&#8217; is &#8216;Black Krim&#8217;<\/p>\n<p>More advanced matches set the return object to a set of nodes and relationships &#8212; here we set p to the set of items starting at the node labeled TOMATO with name &#8216;PLANT0&#8217; with relationships and nodes until you get to a node labeled TOMATO with name &#8216;Tomato0000007&#8217;<\/p>\n<p><tt>MATCH\u00a0p=(a:TOMATO\u00a0{name:\u00a0'PLANT0'})-[*]-&gt;(b:TOMATO\u00a0{name:\u00a0'Tomato0000007'})\u00a0RETURN\u00a0p<\/tt><\/p>\n<p><a href=\"https:\/\/www.rushworth.us\/lisa\/wp-content\/uploads\/2023\/08\/cypher_search_match_object.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-10309\" src=\"https:\/\/www.rushworth.us\/lisa\/wp-content\/uploads\/2023\/08\/cypher_search_match_object.png\" alt=\"\" width=\"1439\" height=\"692\" srcset=\"https:\/\/www.rushworth.us\/lisa\/wp-content\/uploads\/2023\/08\/cypher_search_match_object.png 1439w, https:\/\/www.rushworth.us\/lisa\/wp-content\/uploads\/2023\/08\/cypher_search_match_object-300x144.png 300w, https:\/\/www.rushworth.us\/lisa\/wp-content\/uploads\/2023\/08\/cypher_search_match_object-1024x492.png 1024w, https:\/\/www.rushworth.us\/lisa\/wp-content\/uploads\/2023\/08\/cypher_search_match_object-768x369.png 768w, https:\/\/www.rushworth.us\/lisa\/wp-content\/uploads\/2023\/08\/cypher_search_match_object-750x361.png 750w\" sizes=\"auto, (max-width: 1439px) 100vw, 1439px\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Returning data from NEO4J is matching &#8212; we can match a node using MATCH p=(a:TOMATO {name: &#8216;Black Krim&#8217;}) return p; where the object &#8220;p&#8221; becomes a set of nodes labeled with &#8216;TOMATO&#8217; where the value of &#8216;name&#8217; is &#8216;Black Krim&#8217; More advanced matches set the return object to a set of nodes and relationships &#8212; &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1896],"tags":[1902,1897],"class_list":["post-10304","post","type-post","status-publish","format-standard","hentry","category-neo4j","tag-cypher","tag-neo4j"],"_links":{"self":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts\/10304","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=10304"}],"version-history":[{"count":1,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts\/10304\/revisions"}],"predecessor-version":[{"id":10310,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts\/10304\/revisions\/10310"}],"wp:attachment":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=10304"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=10304"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=10304"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}