Chapter 29. Import tool

The import tool is used to create a new Neo4j database from data in CSV files.

This chapter explains how to use the tool, format the input data and concludes with an example bringing everything together.

These are some things you’ll need to keep in mind when creating your input files:

  • Fields are comma separated by default but a different delimiter can be specified.
  • All files must use the same delimiter.
  • Multiple data sources can be used for both nodes and relationships.
  • A data source can optionally be provided using multiple files.
  • A header which provides information on the data fields must be on the first row of each data source.
  • Fields without corresponding information in the header will not be read.
  • UTF-8 encoding is used.
[Tip]Tip

Indexes are not created during the import. Instead you’ll need to add indexes afterwards (see the section called “Indexes”).

[Note]Note

Data cannot be imported into an existing database using this tool.