Skip to content

Commit 7522df0

Browse files
committed
Fix review comments
1 parent eafc9d7 commit 7522df0

File tree

3 files changed

+10
-6
lines changed

3 files changed

+10
-6
lines changed

modules/ROOT/pages/errors/gql-errors/22ND3.adoc

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
= 22ND3
22

33
== Status description
4-
error: data exception - wrong property for vector search filtering. The property `{ <<propKey>> }` has not been added as an additional property to the vector index `{ <<idx>> }`.
4+
error: data exception - wrong property for vector search filtering. The property `{ <<propKey>> }` is not an additional property of the vector index `{ <<idx>> }`.
55

66
== Example scenario
77
For example, assuming that you have a vector index created by the following command:
@@ -33,19 +33,23 @@ You will receive an error with GQLSTATUS 22ND3 and status description:
3333

3434
[source]
3535
----
36-
error: data exception - wrong property for vector search filtering. The property `votes` has not been added as an additional property to the vector index 'moviePlots'.
36+
error: data exception - wrong property for vector search filtering. The property `votes` is not an additional property of the vector index 'moviePlots'.
3737
----
3838

3939
== Possible solution
4040

41-
If you want to use the property `votes` for vector search filtering, it must be an additional property of the vector index.
42-
This can be achieved by dropping and re-creating the vector index like this:
41+
If you want to use the property `votes` for vector search filtering, it must be added as an additional property to the vector index.
42+
For example:
43+
44+
. Drop the index you want to add the property to:
4345

4446
[source,cypher]
4547
----
4648
DROP INDEX moviePlots
4749
----
4850

51+
. Recreate the index by adding the new property to the index:
52+
4953
[source,cypher]
5054
----
5155
CYPHER 25

modules/ROOT/pages/errors/gql-errors/42I73.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ error: syntax error or access rule violation - invalid predicate for vector sear
6767

6868
== Possible solution
6969
Certain predicates are possible to rewrite so they adhere to the rules of vector search filtering.
70-
E.g. the predicate `NOT movie.rating < 7` can be rewritten to `movie.rating >= 7`, while the predicate `movie.rating > 6 AND movie.rating > 8` can be rewritten to `movie.rating > 6`.
70+
For example, the predicate `NOT movie.rating < 7` can be rewritten to `movie.rating >= 7`, while the predicate `movie.rating > 6 AND movie.rating > 8` can be rewritten to `movie.rating > 8`.
7171

7272
ifndef::backend-pdf[]
7373
[discrete.glossary]

modules/ROOT/pages/errors/gql-errors/42I75.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ MATCH (movie:Movie)
5050
SEARCH movie IN (
5151
VECTOR INDEX moviePlots
5252
FOR m.embedding
53-
WHERE move.rating = movie.year
53+
WHERE movie.rating = movie.year
5454
LIMIT 5
5555
)
5656
RETURN movie.title AS title, movie.rating AS rating

0 commit comments

Comments
 (0)