Use the new vector index creation syntax for Neo4j.

To make the Neo4j module more future-proof, this commit
replaces the old vector index creation syntax with the new style.
Also, the new pattern is in line with the standard Neo4j index creation
and supports the _IF NOT EXISTS_ clause to run idempotent.
This allows us to remove the preceding call to check if the index exists.

As a consequent, the module will require Neo4j to be at least on version 5.15.
This commit is contained in:
Gerrit Meier
2024-02-16 05:53:41 +01:00
committed by Christian Tzolov
parent 05ce9ff398
commit e62543c761
4 changed files with 18 additions and 22 deletions

View File

@@ -13,7 +13,7 @@ Those indexes are powered by Lucene using a Hierarchical Navigable Small World G
== Prerequisites
* A running Neo4j (5.13+) instance. The following options are available:
* A running Neo4j (5.15+) instance. The following options are available:
** link:https://hub.docker.com/_/neo4j[Docker] image
** link:https://neo4j.com/download/[Neo4j Desktop]
** link:https://neo4j.com/cloud/aura-free/[Neo4j Aura]