0

I imported the nodes and edges csv files into the Gephi tool and exported the DB, and copied that DB into Neo4j.

when i run the Cypher.

START n=node:node_auto_index(name="ravi") 
RETURN n

its throwing error, i had enabled auto indexing to true in neo4j.properties,how to resolve the problem?

sasi
  • 4,192
  • 4
  • 28
  • 47
  • Have you looked at [this](http://stackoverflow.com/questions/15688612/neo4j-configuration-with-gephi) and [this](http://stackoverflow.com/questions/14865128/node-auto-index-does-not-exist)? If they don't help, can you provide more details, for instance, How did you "copy the DB into Neo4j"? What error is thrown? – jjaderberg Oct 08 '13 at 14:06
  • jjaderberg.. i just copied the db file created by gephi into the neo4j data folder.. – sasi Oct 09 '13 at 03:50
  • And the error? No help from the two linked questions? – jjaderberg Oct 09 '13 at 10:09
  • hi jjaderberg..this is the error iam getting.. Index `node_auto_index` does not exist – sasi Oct 09 '13 at 11:29
  • 2
    node_auto_index only creates an index entry when you add nodes/relationships through neo4j so if you generated a store file from gephi then it wouldn't have had a chance to index anything which would explain what you're seeing. – Mark Needham Oct 09 '13 at 15:01

1 Answers1

1

You can configure your conf/neo4j.properties to use:

# Enable auto-indexing for nodes, default is false
node_auto_indexing=true

# The node property keys to be auto-indexed, if enabled
node_keys_indexable=name

And re-index your db, e.g. by paging through the db, start skip at 0 and increase it by 50000 for every run:

start n=node(*)
where has(n.name)
with n
skip 150000 limit 50000
set n.name = n.name
Michael Hunger
  • 41,339
  • 3
  • 57
  • 80
  • thanks Hunger..One more doubt, this is the permanent solution for the node_auto_index, when we imported from gephi ? – sasi Oct 10 '13 at 13:51