diff --git a/modules/ROOT/pages/deprecations-additions-removals-compatibility.adoc b/modules/ROOT/pages/deprecations-additions-removals-compatibility.adoc index 192356dfc..79349e167 100644 --- a/modules/ROOT/pages/deprecations-additions-removals-compatibility.adoc +++ b/modules/ROOT/pages/deprecations-additions-removals-compatibility.adoc @@ -16,6 +16,29 @@ New features are added to the language continuously, and occasionally, some feat This section lists all of the features that have been removed, deprecated, added, or extended in different Cypher versions. Replacement syntax for deprecated and removed features are also indicated. +[[cypher-deprecations-additions-removals-5.15]] +== Neo4j 5.15 + +=== Updated features + +[cols="2", options="header"] +|=== +| Feature +| Details +a| +label:functionality[] +label:updated[] + +[source, cypher, role="noheader"] +---- +SHOW VECTOR INDEXES +---- + +| Extended xref:indexes-for-search-performance.adoc#indexes-list-indexes[`SHOW INDEXES`] with easy filtering for vector indexes. +This is equivalent to `SHOW INDEXES WHERE type = 'VECTOR'`. + +|=== + [[cypher-deprecations-additions-removals-5.14]] == Neo4j 5.14 diff --git a/modules/ROOT/pages/indexes-for-search-performance.adoc b/modules/ROOT/pages/indexes-for-search-performance.adoc index 7f2b7def8..2119d8b37 100644 --- a/modules/ROOT/pages/indexes-for-search-performance.adoc +++ b/modules/ROOT/pages/indexes-for-search-performance.adoc @@ -597,7 +597,7 @@ Listing indexes can be done with `SHOW INDEXES`. [source, syntax, role="noheader"] ---- -SHOW [ALL \| FULLTEXT \| LOOKUP \| POINT \| RANGE \| TEXT] INDEX[ES] +SHOW [ALL \| FULLTEXT \| LOOKUP \| POINT \| RANGE \| TEXT \| VECTOR] INDEX[ES] [YIELD { * \| field[, ...] } [ORDER BY field[, ...]] [SKIP n] [LIMIT n]] [WHERE expression] [RETURN field[, ...] [ORDER BY field[, ...]] [SKIP n] [LIMIT n]] @@ -627,7 +627,7 @@ This command will produce a table with the following columns: | `FLOAT` | `type` -| The IndexType of this index (`FULLTEXT`, `LOOKUP`, `POINT`, `RANGE`, or `TEXT`). label:default-output[] +| The IndexType of this index (`FULLTEXT`, `LOOKUP`, `POINT`, `RANGE`, `TEXT`, or `VECTOR`). label:default-output[] | `STRING` | `entityType` @@ -1095,7 +1095,7 @@ With `IF EXISTS`, no error is thrown and nothing happens should the index not ex | [source, syntax, role="noheader"] ---- -SHOW [ALL \| FULLTEXT \| LOOKUP \| POINT \| RANGE \| TEXT] INDEX[ES] +SHOW [ALL \| FULLTEXT \| LOOKUP \| POINT \| RANGE \| TEXT \| VECTOR] INDEX[ES] [YIELD { * \| field[, ...] } [ORDER BY field[, ...]] [SKIP n] [LIMIT n]] [WHERE expression] [RETURN field[, ...] [ORDER BY field[, ...]] [SKIP n] [LIMIT n]] diff --git a/modules/ROOT/pages/indexes-for-vector-search.adoc b/modules/ROOT/pages/indexes-for-vector-search.adoc index 440f65da3..67794b414 100644 --- a/modules/ROOT/pages/indexes-for-vector-search.adoc +++ b/modules/ROOT/pages/indexes-for-vector-search.adoc @@ -57,11 +57,11 @@ Returns the requested number of approximate nearest neighbor nodes and their sim | Drop vector index. | `+DROP INDEX index_name+` -| Drop the specified index. +| Drop the specified index, see the xref:indexes-for-search-performance.adoc#indexes-drop-indexes[`DROP INDEX`] command for details. | Listing all vector indexes. -| `SHOW INDEXES WHERE type = "VECTOR"` -| Lists all vector indexes, see the xref:indexes-for-search-performance.adoc#indexes-list-indexes[`SHOW INDEXES`] command for details. There is no vector index filter built into `SHOW INDEXES`. +| `SHOW VECTOR INDEXES` +| Lists all vector indexes, see the xref:indexes-for-search-performance.adoc#indexes-list-indexes[`SHOW INDEXES`] command for details. | Set vector property. | {link-procedures-reference}#procedure_db_create_setNodeVectorProperty[`db.create.setNodeVectorProperty`] @@ -142,8 +142,7 @@ You can see that the vector index has been created using `SHOW INDEXES`: .Query [source,cypher] ---- -SHOW INDEXES YIELD name, type, labelsOrTypes, properties, options -WHERE type = 'VECTOR' +SHOW VECTOR INDEXES YIELD name, type, labelsOrTypes, properties, options ---- .Result @@ -400,7 +399,7 @@ For example, you cannot have one xref:indexes-vector-similarity-euclidean[Euclid * Changes made within the same transaction are not visible to the index. -* There is no Cypher syntax for creating a vector index, nor for the standard index type filtering with xref:indexes-for-search-performance.adoc#indexes-list-indexes[`SHOW INDEXES`] command. +* There is no Cypher syntax for creating a vector index. [[index-vector-issues]] == Known issues @@ -412,6 +411,19 @@ The following table lists the known issues and the version in which they were fi |=== | Known issues | Fixed in +| The standard index type filtering for xref:indexes-for-search-performance.adoc#indexes-list-indexes[`SHOW INDEXES`] command is missing. + +[TIP] +==== +Filtering on vector indexes can be done with the `WHERE` clause as well: +[source,cypher] +---- +SHOW INDEXES +WHERE type = 'VECTOR' +---- +==== +| Neo4j 5.15 + | Querying for a _single_ approximate nearest neighbor from an index would fail a validation check. Passing a `null` value would also provide an unhelpful exception. | Neo4j 5.13 @@ -477,9 +489,7 @@ If a store copy is required, make a note of the information in the `createStatem For example: [source,cypher] ---- -SHOW INDEXES YIELD type, createStatement -WHERE type = 'VECTOR' -RETURN createStatement +SHOW VECTOR INDEXES YIELD createStatement ---- ==== | Neo4j 5.12