Neo4j 2.1.7: How can I index my current data that was there before
I had the old schema and imported the new schema to db and tried to apply the indices from the new schema to the old schema as well
I created indexes and I wrote a cypher that is affected by these indexes, but it took a long time until it returned an answer.
What I was trying to do to solve it - I understand that after the index is created, only the data after the index is created will be indexed. I also tried to write some ciphers that should trigger the index, but that didn't work.
tl; dr - How can I call these indexes on the old schema?
source to share
You can use the command :SCHEMA
in the Neo4j browser to find out which indexes have been created and their current status (if they are online or still under construction).
For example, this is the result of running :SCHEMA
Neo4j in the browser for a simple graph with one index:
:SCHEMA
Indexes
ON :Tag(title) ONLINE
No constraints
source to share