The following issue is ocurring when for example renaming by the apoc procedure CALL apoc.refactor.rename.label('old','new');
The old labels still exists eventhough there is node of this label any longer.
I actually do have the same issue with no longer existant properties which when queried don't result in any nodes (entities) or relationships.
Is there any way to force a refactoring solving this issue?
Hello together,
after applying the above mentioned APOC Procudure the renewal seems to not taking place right away.
I can't access the renamed data, how can I force a rebuild of the strcuture.
Hi Vivek,
actually might be with regards to the amount of data, what I do is the follwing:
renaming to an existant node label, when querying the old lable it's still existing but when querying the new one with where clause to the new and old source I do get the following:
MATCH (n:ENTITY) RETURN distinct n.source LIMIT 25 * Table
Text
Code
n.source
"RISE NETWORK"
"COMBINED LAUNDROMAT RU RO"
"KROLL REPORT"
"PARADISE PAPERS"
"PANAMA PAPERS"
"OFFSHORE LEAKS"
"BAHAMAS LEAKS"
"COMPANIES HOUSE"
The switched source with regards to node type ENTITY is "COMPANIES HOUSE"
but if I then do the following query I do not get any result as follows:
MATCH (n:ENTITY) where n.source = "COMPANIES HOUSE" RETURN n LIMIT 25
Table
Code
(no changes, no records)
And as written I do have as well no longer existing Property Keys for a couple of weeks.
Thank you very much in advance.
MATCH (n) WHERE EXISTS(n.origion_country)
RETURN DISTINCT "node" as entity, n.origion_country AS origion_country LIMIT 25
UNION ALL MATCH ()-[r]-() WHERE EXISTS(r.origion_country)
RETURN DISTINCT "relationship" AS entity, r.origion_country AS origion_country LIMIT 25;
MATCH (n) WHERE EXISTS(n.brand)
RETURN DISTINCT "node" as entity, n.brand AS brand LIMIT 25
UNION ALL MATCH ()-[r]-() WHERE EXISTS(r.brand)
RETURN DISTINCT "relationship" AS entity, r.brand AS brand LIMIT 25;
MATCH (n:LEGALENTITY)
RETURN n LIMIT 25;
Dear all helpers:
I have solved the issue with the labels by dropping all the still existing indexes.
The problem that still remains is the property, but in the end I guess I have to live with it or redo the database.
Thank you all.