Cypher is not a static language. New versions introduce new features and sometimes old features get dropped. Older versions of the language can still be accessed if required. There are two ways to select which version to use in queries.
cypher.default_language_version, and enter which version you’d like to use (see Section 188.8.131.52, “Supported Language Versions”). Every Cypher query will use this version, provided the query hasn’t explicitly been configured as described in the next item below.
CYPHER 2.3at the beginning, that particular query will be executed with the version of Cypher included in Neo4j 2.3.
Below is an example using the
START clause to access a legacy index:
CYPHER 2.3 START n=node:nodes(name = "A") RETURN n
In versions of Cypher prior to 2.2 it was also possible to access specific nodes or relationships using the
In this case you could use a syntax like the following:
CYPHER 1.9 START n=node(42) RETURN n
The use of the
Neo4j 3.1 supports the following versions of the Cypher language:
Each release of Neo4j supports a limited number of old Cypher Language Versions. When you upgrade to a new release of Neo4j, please make sure that it supports the Cypher language version you need. If not, you may need to modify your queries to work with a newer Cypher language version.