[neo4j] Install and Usage - dsindex/blog GitHub Wiki

cd neo4j-community-2.2.1
cd conf
vi neo4j-server.properties
   org.neo4j.server.webserver.address=your_address
vi neo4j.properties
   node_auto_indexing=true
   node_keys_indexable=name,synonyms
   relationship_auto_indexing=true
   relationship_keys_indexable=name
cd ../bin
./neo4j start 
or
./neo4j console
visit http://your_address:7474/
  • try online
  • fulltext indexing
  • bulk insert
  • bulk insert using 'neo4j-import'
    • command
    ./bin/neo4j-import --into ./data/person.db --nodes person.csv --relationships:HAS_PARENT parent_rel.csv --skip-bad-relationships true --stacktrace true 
    
    • nodes
    id:id(Person),name,synonyms,job,age:int,....,homepage,:LABEL
    1,홍길동,동해번쩍,괴도,25,....,http://....,Person
    ....
    
    • relationships
    :START_ID(Person),relname,:END_ID(Person)
    1,"parent",0
    10,"parent",0
    100,"parent",2
    ....
    => START_ID,END_ID 사이 필드는 relationship의 properties, 생략가능하다.