cypher - Neo4j Index not available -


i try create index in neo4j, seems not working. insert data following codes snippet.

 create index on :`person`(`name`)  create (_0:`person` {`name`:"andres"})  create (_1:`person` {`name`:"mark"})  create _0-[:`knows`]->_1 

the code here works fine. when try fetch data cypher command

start n=node:name(name= 'bob') return n 

i've got error

index `name` not exist neo.clienterror.schema.nosuchindex 

but can see above, declare index name. query wrong?

either must use automatic index - http://docs.neo4j.org/chunked/milestone/auto-indexing.html - first specify in neo4j config file parameters indexed (than start/restart server)

or when using manual indexing - http://docs.neo4j.org/chunked/milestone/indexing-add.html - must include each new node index manualy this:

match (n:person) using index n:person(name) n.name = 'bob' return n 

view neo4j cypher : unable create , use index


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -