I have a neo4j instance in which I have multiple types of nodes (Labels), each with their own set of properties. So, say I have:
Label "Person" with Properties ("Name","Address","Father's Name")
Label "Location" with properties ("Name","Country","City")
Label "Event" with properties ("Name","City","Country")
and so on...
Now one way is to search for a query like "xyz" when I know the specifics:
Say: match (n:Person) where n.Name="xyz" return n
My question is, is there a single 'efficient' cypher query which can do a blind search. Basically it should be able to search all Labels and all properties and give me the nodes that match. So a single query to match 'xyz' with all properties of Person, Location, Event and other Labels in my database.
I understand one way could be using an extremely long where clause, wherein I hard-code all my labels and their respective properties, but I am not looking for that. Is there a straightforward neo4j Cypher to do this?