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
Copy file name to clipboardExpand all lines: modules/ROOT/pages/patterns/reference.adoc
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -717,7 +717,7 @@ MATCH ((x:A)-[:R]->(z:B WHERE z.h > 2)){1,5}
717
717
RETURN [n in x | n.h] AS x_h, [n in z | n.h] AS z_h
718
718
----
719
719
720
-
Compared to the fixedlength quantifier `\{2}`, this also matches paths of length one and three, but no matches exist for length greater than three:
720
+
Compared to the fixed-length quantifier `\{2}`, this also matches paths of length one and three, but no matches exist for length greater than three:
721
721
722
722
[options="header",cols="2*<m"]
723
723
|===
@@ -1372,7 +1372,7 @@ They are similar to `SHORTEST 1` and `ALL SHORTEST`, but with several difference
1372
1372
* The path pattern is passed as an argument to the functions.
1373
1373
* The path pattern is limited to a single relationship pattern.
1374
1374
* To return results where the first and last node in the path are the same requires a change to the configuration setting link:{neo4j-docs-base-uri}/operations-manual/{page-version}/configuration/configuration-settings/#config_dbms.cypher.forbid_shortestpath_common_nodes[`dbms.cypher.forbid_shortestpath_common_nodes`].
1375
-
* The minimum path length, also called the lower bound of the variablelength relationship pattern, should be 0 or 1.
1375
+
* The minimum path length, also called the lower bound of the variable-length relationship pattern, should be 0 or 1.
1376
1376
1377
1377
Both functions will continue to be available, but they are not xref:appendix/gql-conformance/index.adoc[GQL conformant].
Note that it is possible to pass a fixedlength path pattern (with a single relationship) to the path selector function, but doing so would not serve any purpose in discovering a shortest path.
1397
+
Note that it is possible to pass a fixed-length path pattern (with a single relationship) to the path selector function, but doing so would not serve any purpose in discovering a shortest path.
Copy file name to clipboardExpand all lines: modules/ROOT/pages/planning-and-tuning/query-tuning.adoc
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,7 @@ The overall goal of manual query performance optimization is to ensure that only
16
16
17
17
Queries should aim to filter data as early as possible in order to reduce the amount of work that has to be done in the later stages of query execution.
18
18
This also applies to what gets returned: returning whole nodes and relationships ought to be avoided in favour of selecting and returning only the data that is needed.
19
-
You should also make sure to set an upper limit on variablelength patterns, so they don't cover larger portions of the dataset than needed.
19
+
You should also make sure to set an upper limit on variable-length patterns, so they don't cover larger portions of the dataset than needed.
20
20
21
21
Each Cypher query gets optimized and transformed into an xref::planning-and-tuning/execution-plans.adoc[execution plan] by the Cypher query planner.
22
22
To minimize the resources used for this, try to use parameters instead of literals when possible.
Copy file name to clipboardExpand all lines: modules/ROOT/pages/queries/basic.adoc
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -798,7 +798,7 @@ LIMIT 5
798
798
The quantifier used in the above two examples was introduced with the release of xref::patterns/variable-length-patterns.adoc#quantified-path-patterns[quantified path patterns] in Neo4j 5.9.
799
799
Before that, the only way in Cypher to match paths of a variable length was with a variable-length relationship.
800
800
This syntax is still available in Cypher, but it is not xref:appendix/gql-conformance/index.adoc[GQL conformant].
801
-
For more information, see xref::patterns/reference.adoc#variable-length-relationships[Patterns -> Syntax and semantics -> Variablelength relationships].
801
+
For more information, see xref::patterns/reference.adoc#variable-length-relationships[Patterns -> Syntax and semantics -> Variable-length relationships].
802
802
803
803
The xref:patterns/shortest-paths.adoc[`SHORTEST`] keyword can be used to find a variation of the shortest paths between two nodes.
804
804
In this example, `ALL SHORTEST` paths between the two nodes `Keanu Reeves` and `Tom Cruise` are found.
0 commit comments