Skip to content

Commit fada242

Browse files
Update procedures descriptions and modes according to the test result… (#1186)
…s (#1155) Update descriptions and modes of the procedures according to the [test results](https://trello.com/c/bCR3TJOn) --------- Co-authored-by: Reneta Popova <[email protected]>
1 parent 488c546 commit fada242

File tree

1 file changed

+38
-67
lines changed

1 file changed

+38
-67
lines changed

modules/ROOT/pages/reference/procedures.adoc

Lines changed: 38 additions & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ In 4.2, signature changed to `db.listLocks() :: (mode :: STRING, resourceType ::
243243
| xref:reference/procedures.adoc#procedure_dbms_checkconfigvalue[`dbms.checkConfigValue()`]
244244
| label:no[]
245245
| label:yes[]
246-
| New in 5.0.
246+
| label:new[Introduced in 5.0] label:admin-only[]
247247

248248
// New in 4.0
249249
// Internal
@@ -765,9 +765,7 @@ m|READ
765765
|===
766766
| Description
767767
a|
768-
Wait for an index to come online.
769-
770-
Example: `CALL db.awaitIndex("MyIndex", 300)`
768+
Wait for an index to come online (for example: `CALL db.awaitIndex("MyIndex", 300)`).
771769
| Signature
772770
m|db.awaitIndex(indexName :: STRING, timeOutSeconds = 300 :: INTEGER)
773771
| Mode
@@ -789,9 +787,7 @@ For more information, see the link:{neo4j-docs-base-uri}/cypher-manual/{page-ver
789787
|===
790788
| Description
791789
a|
792-
Wait for all indexes to come online.
793-
794-
Example: `CALL db.awaitIndexes(300)`
790+
Wait for all indexes to come online (for example: `CALL db.awaitIndexes(300)`).
795791
| Signature
796792
m|db.awaitIndexes(timeOutSeconds = 300 :: INTEGER)
797793
| Mode
@@ -853,13 +849,11 @@ m|DBMS
853849
|===
854850
| Description
855851
a|
856-
Update a given node property with the given vector in a more space efficient way than using link:{neo4j-docs-base-uri}/cypher-manual/{page-version}/clauses/set#set-set-a-property[`SET`] directly.
857-
858-
Returns the given node on which the property was set.
852+
Set a vector property on a given node in a more space efficient representation than Cypher’s link:{neo4j-docs-base-uri}/cypher-manual/{page-version}/clauses/set#set-set-a-property[`SET`].
859853
| Signature
860854
m| db.create.setNodeVectorProperty(node :: NODE, key :: STRING, vector :: LIST<FLOAT>)
861855
| Mode
862-
m| WRITE
856+
m|WRITE
863857
|===
864858

865859
[[procedure_db_create_setVectorProperty]]
@@ -868,13 +862,11 @@ m| WRITE
868862
|===
869863
| Description
870864
a|
871-
Update a given node property with the given vector in a more space efficient way than using link:{neo4j-docs-base-uri}/cypher-manual/{page-version}/clauses/set#set-set-a-property[`SET`] directly.
872-
873-
Returns the given node on which the property was set.
865+
Set a vector property on a given node in a more space efficient representation than Cypher’s link:{neo4j-docs-base-uri}/cypher-manual/{page-version}/clauses/set#set-set-a-property[`SET`].
874866
| Signature
875867
m| db.create.setVectorProperty(node :: NODE, key :: STRING, vector :: LIST<FLOAT>) :: (node :: NODE)
876868
| Mode
877-
m| WRITE
869+
m|WRITE
878870
| Replaced by
879871
a|xref:reference/procedures.adoc#procedure_db_create_setNodeVectorProperty[`db.create.setNodeVectorProperty()`]
880872
|===
@@ -1037,7 +1029,7 @@ In the above equation, the trigonometric cosine is given by the scalar product o
10371029
| Signature
10381030
m| db.index.vector.createNodeIndex(indexName :: STRING, label :: STRING, propertyKey :: STRING, vectorDimension :: INTEGER, vectorSimilarityFunction :: STRING)
10391031
| Mode
1040-
m| SCHEMA
1032+
m|SCHEMA
10411033
|===
10421034

10431035
[[procedure_db_index_vector_queryNodes]]
@@ -1047,14 +1039,12 @@ m| SCHEMA
10471039
| Description
10481040
a|
10491041
Query the given vector index.
1050-
1051-
Returns the requested number of approximate nearest neighbor nodes and their similarity score, ordered by the score.
1052-
1053-
The similarity score is bounded between `0` and `1`; least to most similar respectively.
1042+
Returns requested number of nearest neighbors to the provided query vector, and their similarity score to that query vector, based on the configured similarity function for the index.
1043+
The similarity score is a value between [0, 1]; where `0` indicates least similar, `1` most similar.
10541044
| Signature
10551045
m| db.index.vector.queryNodes(indexName :: STRING, numberOfNearestNeighbours :: INTEGER, query :: LIST<FLOAT>) :: (node :: NODE, score :: FLOAT)
10561046
| Mode
1057-
m| READ
1047+
m|READ
10581048
|===
10591049

10601050
[[procedure_db_info]]
@@ -1225,9 +1215,7 @@ For more information, see the link:{neo4j-docs-base-uri}/cypher-manual/{page-ver
12251215
|===
12261216
| Description
12271217
a|
1228-
Schedule resampling of an index.
1229-
1230-
Example: `CALL db.resampleIndex("MyIndex")`
1218+
Schedule resampling of an index (for example: `CALL db.resampleIndex("MyIndex")`).
12311219
| Signature
12321220
m|db.resampleIndex(indexName :: STRING)
12331221
| Mode
@@ -1316,9 +1304,11 @@ For more information, see the link:{neo4j-docs-base-uri}/cypher-manual/{page-ver
13161304
|===
13171305
| Description
13181306
a|
1319-
Visualizes the schema of the data based on available statistics. A new node is returned for each label.
1320-
The properties represented on the node include `name` (label name), `indexes` (list of indexes), and `constraints` (list of constraints).
1307+
Visualizes the schema of the data based on available statistics.
1308+
A new node is returned for each label.
1309+
The properties represented on the node include: name (label name), indexes (list of indexes), and constraints (list of constraints).
13211310
A relationship of a given type is returned for all possible combinations of start and end nodes.
1311+
The properties represented on the relationship include: name (type name).
13221312
Note that this may include additional relationships that do not exist in the data due to the information available in the count store.
13231313
| Signature
13241314
m|db.schema.visualization() :: (nodes :: LIST<NODE>, relationships :: LIST<RELATIONSHIP>)
@@ -1439,7 +1429,7 @@ m|READ
14391429
|===
14401430

14411431
[[procedure_dbms_checkconfigvalue]]
1442-
.dbms.checkConfigValue() label:enterprise-edition[]
1432+
.dbms.checkConfigValue() label:admin-only[] label:enterprise-edition[]
14431433
[cols="<15s,<85"]
14441434
|===
14451435
| Description
@@ -1488,11 +1478,11 @@ m|WRITE
14881478
|===
14891479
| Description
14901480
a|
1491-
Checks the connectivity of this instance to other cluster members.
1481+
Check the connectivity of this instance to other cluster members.
14921482
Not all ports are relevant to all members.
14931483
Valid values for 'port-name' are: [CLUSTER, RAFT].
14941484
| Signature
1495-
m|dbms.cluster.checkConnectivity
1485+
m|dbms.cluster.checkConnectivity(port-name = null :: STRING, server = null :: STRING) :: (serverId :: STRING, mode-constraint :: STRING, port-name :: STRING, port-address :: STRING, result :: STRING)
14961486
| Mode
14971487
m|DBMS
14981488
|===
@@ -1502,7 +1492,8 @@ m|DBMS
15021492
[cols="<15s,<85"]
15031493
|===
15041494
| Description
1505-
a| Marks a server in the topology as not suitable for new allocations.
1495+
a|
1496+
Mark a server in the topology as not suitable for new allocations.
15061497
It will not force current allocations off the server.
15071498
This is useful when deallocating databases when you have multiple unavailable servers.
15081499
| Signature
@@ -1518,8 +1509,8 @@ m|WRITE
15181509
|===
15191510
| Description
15201511
a|
1521-
Returns endpoints of this instance.
1522-
Used in disaster recovery.
1512+
Returns the advertised bolt capable endpoints for a given database, divided by each endpoint’s capabilities.
1513+
For example, an endpoint may serve read queries, write queries, and/or future `getRoutingTable` requests.
15231514
| Signature
15241515
m|dbms.cluster.routing.getRoutingTable(context :: MAP, database = null :: STRING) :: (ttl :: INTEGER, servers :: LIST<MAP>)
15251516
| Mode
@@ -1535,12 +1526,10 @@ m|DBMS
15351526
| Description
15361527
a|
15371528
Overview of installed protocols.
1538-
1539-
Note that this can only be executed on a cluster core member.
15401529
| Signature
15411530
m|dbms.cluster.protocols() :: (orientation :: STRING, remoteAddress :: STRING, applicationProtocol :: STRING, applicationProtocolVersion :: INTEGER, modifierProtocols :: STRING)
15421531
| Mode
1543-
m|READ
1532+
m|DBMS
15441533
// | Default roles
15451534
// m|reader, editor, publisher, architect, admin
15461535
|===
@@ -1551,13 +1540,11 @@ m|READ
15511540
|===
15521541
| Description
15531542
a|
1554-
The toggle can pause or resume the pulling of new transactions for a specific database.
1555-
If paused, the database secondary does not pull new transactions from the other cluster members for the specific database.
1556-
The database secondary is still available for reads, you can perform a backup, etc.
1543+
The toggle can pause or resume read replica (deprecated in favor of `dbms.cluster.secondaryReplicationDisable`)
15571544
| Signature
15581545
m|dbms.cluster.readReplicaToggle(databaseName :: STRING, pause :: BOOLEAN) :: (state :: STRING)
15591546
| Mode
1560-
m|READ
1547+
m|DBMS
15611548
| Replaced by
15621549
a|xref:reference/procedures.adoc#procedure_dbms_cluster_secondaryreplicationdisable[`dbms.cluster.secondaryReplicationDisable()`]
15631550
// | Default roles
@@ -1602,13 +1589,11 @@ CALL dbms.cluster.readReplicaToggle("neo4j", false)
16021589
|===
16031590
| Description
16041591
a|
1605-
The toggle can pause or resume the pulling of new transactions for a specific database.
1606-
If paused, the database secondary does not pull new transactions from the other cluster members for the specific database.
1607-
The database secondary is still available for reads, you can perform a backup, etc.
1592+
The toggle can pause or resume the secondary replication process.
16081593
| Signature
16091594
m|dbms.cluster.secondaryReplicationDisable(databaseName :: STRING, pause :: BOOLEAN) :: (state :: STRING)
16101595
| Mode
1611-
m|READ
1596+
m|DBMS
16121597
// | Default roles
16131598
// m|admin
16141599
|===
@@ -1649,11 +1634,11 @@ CALL dbms.cluster.secondaryReplicationDisable("neo4j", false)
16491634
[cols="<15s,<85"]
16501635
|===
16511636
| Description
1652-
a| Removes the cordon on a server, returning it to 'enabled'.
1637+
a| Remove the cordon on a server, returning it to 'enabled'.
16531638
| Signature
16541639
m| dbms.cluster.uncordonServer(server :: STRING)
16551640
| Mode
1656-
m| WRITE
1641+
m|WRITE
16571642
|===
16581643

16591644

@@ -1761,19 +1746,7 @@ m|DBMS
17611746
|===
17621747
| Description
17631748
a|
1764-
List all configuration settings whose names include the `searchString`, or all configuration settings if `searchString` is omitted.
1765-
1766-
Use this procedure to check a setting's values, investigate when a value was set, or find information on valid values.
1767-
1768-
Results include:
1769-
1770-
* `value`: the current value of the setting.
1771-
* `dynamic`: true if the value can be changed at runtime, or false if it requires a restart.
1772-
* `defaultValue`: the default value of the setting.
1773-
* `startupValue`: the value when the server was started, after _neo4j.conf_ and command line arguments have been applied.
1774-
* `explicitlySet`: true if the value was set explicitly, or false if it was set by default.
1775-
* `validValues`: contains information on data types and possible values for the settings.
1776-
1749+
List the currently active configuration settings of Neo4j.
17771750
| Signature
17781751
m|dbms.listConfig(searchString = :: STRING) :: (name :: STRING, description :: STRING, value :: STRING, dynamic :: BOOLEAN, defaultValue :: STRING, startupValue :: STRING, explicitlySet :: BOOLEAN, validValues :: STRING)
17791752
| Mode
@@ -1825,8 +1798,7 @@ For more information, see the link:{neo4j-docs-base-uri}/cypher-manual/{page-ver
18251798
|===
18261799
| Description
18271800
a|
1828-
Place a database in quarantine or remove thereof.
1829-
It must be executed over `bolt://`.
1801+
Place a database into quarantine or remove it from it.
18301802
| Signature
18311803
m|dbms.quarantineDatabase(databaseName :: STRING, setStatus :: BOOLEAN, reason = No reason given :: STRING) :: (databaseName :: STRING, quarantined :: BOOLEAN, result :: STRING)
18321804
| Mode
@@ -1841,10 +1813,7 @@ m|DBMS
18411813
|===
18421814
| Description
18431815
a|
1844-
Query JMX management data by domain and name.
1845-
1846-
Valid queries should use the syntax outlined in the link:https://docs.oracle.com/en/java/javase/11/docs/api/java.management/javax/management/ObjectName.html[javax.management.ObjectName API documentation]. +
1847-
For instance, use `+"*:*"+` to find all JMX beans.
1816+
Query JMX management data by domain and name. For instance, use `:` to find all JMX beans.
18481817
| Signature
18491818
m|dbms.queryJmx(query :: STRING) :: (name :: STRING, description :: STRING, attributes :: MAP)
18501819
| Mode
@@ -1860,7 +1829,8 @@ m|DBMS
18601829
|===
18611830
| Description
18621831
a|
1863-
Returns endpoints of this instance.
1832+
Returns the advertised bolt capable endpoints for a given database, divided by each endpoint’s capabilities.
1833+
For example an endpoint may serve read queries, write queries and/or future `getRoutingTable` requests.
18641834
| Signature
18651835
m|dbms.routing.getRoutingTable(context :: MAP, database = null :: STRING) :: (ttl :: INTEGER, servers :: LIST<MAP>)
18661836
| Mode
@@ -1874,7 +1844,8 @@ m|DBMS
18741844
[cols="<15s,<85"]
18751845
|===
18761846
| Description
1877-
a| With this method you can set the allocator, which is responsible to select servers for hosting databases. The only current option is `EQUAL_NUMBERS`.
1847+
a|
1848+
With this method, you can set the allocator that is responsible for selecting servers for hosting databases.
18781849
| Signature
18791850
m|dbms.setDatabaseAllocator(allocator :: STRING)
18801851
| Mode
@@ -1898,7 +1869,7 @@ a|WRITE
18981869
[cols="<15s,<85"]
18991870
|===
19001871
| Description
1901-
a| Changes the default database to the provided value.
1872+
a| Change the default database to the provided value.
19021873
The database must exist and the old default database must be stopped.
19031874
| Signature
19041875
m|dbms.setDefaultDatabase(databaseName :: STRING) :: (result :: STRING)

0 commit comments

Comments
 (0)