Skip to content

Commit e093c60

Browse files
clarify how to name indexes (#1283)
1 parent adcee52 commit e093c60

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

modules/ROOT/pages/indexes/search-performance-indexes/managing-indexes.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ For information about how search-performance indexes are used in Cypher queries,
1616
[[create-indexes]]
1717
== +CREATE INDEX+
1818

19-
Creating an index is done with the `CREATE ... INDEX ...` command.
19+
Creating an index is done with the `CREATE [index_type] INDEX [index_name]` command.
2020
If no index type is specified in the create command a xref:indexes/search-performance-indexes/managing-indexes.adoc#create-range-index[range index] will be created.
2121

22-
Best practice is to give the index a name when it is created.
22+
It is recommended to give the index a name when it is created.
2323
If the index is not explicitly named, it gets an auto-generated name.
2424

2525
[IMPORTANT]

modules/ROOT/pages/indexes/semantic-indexes/full-text-indexes.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ CREATE (nilsE:Employee {name: "Nils-Erik Karlsson", position: "Engineer", team:
3131
[[create-full-text-indexes]]
3232
== Create full-text indexes
3333

34-
Full-text indexes are created with the `CREATE FULLTEXT INDEX` command.
34+
Full-text indexes are created with the `CREATE FULLTEXT INDEX [index_name]` command.
3535
It is recommended to to give the index a name when it is created.
3636
If no name is given when created, a random name will be assigned to the full-text index.
3737

modules/ROOT/pages/indexes/semantic-indexes/vector-indexes.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ It can be used to index nodes or relationships by `LIST<INTEGER | FLOAT>` proper
7474
Note that the available vector index providers (`vector-2.0` (default) and `vector-1.0` (deprecated)) support different index schemas, property value types, and vector dimensions.
7575
For more information, see xref:indexes/semantic-indexes/vector-indexes.adoc#vector-index-providers[].
7676

77-
A vector index is created by using the `CREATE VECTOR INDEX` command.
77+
A vector index is created by using the `CREATE VECTOR INDEX [index_name]` command.
7878
It is recommended to give the index a name when it is created.
7979
If no name is given when created, a random name will be assigned.
8080
As of Neo4j 5.16, the index name can also be given as a parameter: `CREATE VECTOR INDEX $name ...`.

0 commit comments

Comments
 (0)