You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -225,12 +226,13 @@ Values can be plain numbers, such as `10000000`, or `20G` for 20 gigabytes.
225
226
It can also be specified as a percentage of the available memory, for example `70%`.
226
227
|90%
227
228
228
-
|--multiline-fields[=true\|false]
229
-
|Whether or not fields from an input source can span multiple lines, i.e. contain newline characters.
229
+
|--multiline-fields=true\|false\|<path>[,<path>]
230
+
|label:changed[Changed in 5.26] In v1, whether or not fields from an input source can span multiple lines, i.e. contain newline characters. Setting `--multiline-fields=true` can severely degrade the performance of the importer. Therefore, use it with care, especially with large imports. In v2, this option will specify the list of files that contain multiline fields. Files can also be specified using regular expressions.
231
+
|null
230
232
231
-
Setting `--multiline-fields=true` can severely degrade the performance of the importer.
232
-
Therefore, use it with care, especially with large imports.
233
-
|false
233
+
|--multiline-fields-format=v1\|v2
234
+
|label:new[Introduced in 5.26] Controls the parsing of input source that can span multiple lines, i.e. contain newline characters. When set to v1, the value for `--multiline-fields` can only be true or false. When set to v2, the value for `--multiline-fields` should be the list of files that contain multiline fields.
235
+
|null
234
236
235
237
|--nodes=[<label>[:<label>]...=]<files>...
236
238
|Node CSV header and data.
@@ -580,17 +582,19 @@ It is highly recommended to back up your database before running the incremental
@@ -741,12 +745,13 @@ Values can be plain numbers, such as `10000000`, or `20G` for 20 gigabytes.
741
745
It can also be specified as a percentage of the available memory, for example `70%`.
742
746
|90%
743
747
744
-
|--multiline-fields[=true\|false]
745
-
|Whether or not fields from an input source can span multiple lines, i.e. contain newline characters.
748
+
|--multiline-fields=true\|false\|<path>[,<path>]
749
+
|label:changed[Changed in 5.26] In v1, whether or not fields from an input source can span multiple lines, i.e. contain newline characters. Setting `--multiline-fields=true` can severely degrade the performance of the importer. Therefore, use it with care, especially with large imports. In v2, this option will specify the list of files that contain multiline fields. Files can also be specified using regular expressions.
750
+
|null
746
751
747
-
Setting `--multiline-fields=true` can severely degrade the performance of the importer.
748
-
Therefore, use it with care, especially with large imports.
749
-
|false
752
+
|--multiline-fields-format=v1\|v2
753
+
|label:new[Introduced in 5.26] Controls the parsing of input source that can span multiple lines, i.e. contain newline characters. When set to v1, the value for `--multiline-fields` can only be true or false. When set to v2, the value for `--multiline-fields` should be the list of files that contain multiline fields.
The `id` property of the nodes in the `persons` group will be stored as `long` type, while the `id` property of the nodes in the `games` group will be stored as `string` type, as the global `id-type` is a string.
1411
1416
====
1412
1417
1418
+
1419
+
== Importing data that spans multiple lines
1420
+
1421
+
The `--multiline-fields` option allows fields from an input source to span multiple lines, i.e. contain newline characters.
1422
+
For example:
1423
+
1424
+
[source, shell, role=noplay]
1425
+
----
1426
+
bin/neo4j-admin database import full --nodes import/node_header.csv,import/node_data.csv --multiline-fields=true databasename
1427
+
----
1428
+
1429
+
Where `import/node_data.csv` contains multiline fields, such as:
1,John,October 1st,2000,New York,This is a multiline
1435
+
description
1436
+
----
1437
+
1438
+
[NOTE]
1439
+
====
1440
+
Setting `--multiline-fields=true` can severely degrade the performance of the importer.
1441
+
Therefore, use it with care, especially with large imports.
1442
+
====
1443
+
1444
+
Starting from 5.26, you can optionally specify the format of the `--multiline-fields` to control the parsing of the input source by setting the `--multiline-fields-format` option.
1445
+
Possible values are:
1446
+
1447
+
* `v1` - the default format, which uses the current processing method for multiline fields.
1448
+
* `v2` - a more efficient processing method that requires text fields to be quoted.
1449
+
For `v2`, the `--multiline-fields` option must be set to a list of files (regular expressions are allowed) that contain multiline fields.
1450
+
1451
+
Both formats have the restriction that the entirety of every row must be able to fit into the buffer (default is 4m).
1452
+
The `--multiline-fields-format` option is available in the `full` and `incremental` import modes.
1453
+
1454
+
For example:
1455
+
1456
+
[.tabbed-example]
1457
+
=====
1458
+
[role=include-with-multiline-fields-format-v1]
1459
+
======
1460
+
[source, shell, role=noplay]
1461
+
----
1462
+
bin/neo4j-admin database import full --nodes import/node_header.csv,import/node_data.csv --multiline-fields=true --multiline-fields-format=v1 databasename
1463
+
----
1464
+
1465
+
Where `import/node_data.csv` contains multiline fields, such as:
0 commit comments