I'm using the neo4j browser to search for a node in my graph by label. I know the node exists and the label on the node is correct, but when I specify the label on the node, neo4j can't find it.
More specifically, I use the following cypher query in the neo4j browser:
match (a:Foo) where a.value = "Bar" return a
(no changes, no records)
However a node with that value does exist with that label:
match (a) where a.value = "Bar" return labels(a)
["Foo"]
There is an index on that label, but I don't know if that is relevant.
:schema
Indexes
ON :Foo(value) ONLINE
Additionally, explicitly resetting the label doesn't seem to work:
match (a) where a.value = "Bar"
set a :Foo
return a
Will return the node with the correct label applied, but when I retry my original query it still cannot find the node.
This has worked previously, but I have made some changes recently to our heap size/ page cache size /gc type trying to run down another issue with 100% cpu hangs on garbage collection. None of those changes should have affected labels.
Has anyone had this experience before?
I'm using Neo4j CE v3.3.0
REMOVE a:Foo
before theSET
help? If not, and this is a problem with just a single node, you could try replacing that node with a new one (and re-creating all its relationships as well). – cybersamREMOVE
still "worked" in that it didn't throw an error or anything, but I still can't find that node by label. – jkeuhlen