Skip to content

Commit bdde4e8

Browse files
committed
generate the index file and editorial updates
1 parent a2a8818 commit bdde4e8

File tree

5 files changed

+41
-11
lines changed

5 files changed

+41
-11
lines changed

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

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
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 for the vector index `{ <<idx>> }`.
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>> }`.
55

66
== Example scenario
7-
For example, assuming that you have a vector index created by
7+
For example, assuming that you have a vector index created by the following command:
88

99
[source,cypher]
1010
----
@@ -14,7 +14,7 @@ FOR (m:Movie) ON m.embedding
1414
WITH [m.rating]
1515
----
1616

17-
When using another property key than `rating` in a vector search filter:
17+
When using a property key other than `rating` in a vector search filter:
1818

1919
[source,cypher]
2020
----
@@ -33,10 +33,11 @@ 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 for the vector index 'moviePlots'.
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'.
3737
----
3838

3939
== Possible solution
40+
4041
If you want to use the property `votes` for vector search filtering, it must be an additional property of the vector index.
4142
This can be achieved by dropping and re-creating the vector index like this:
4243

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

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
= 42I73
22

33
== Status description
4-
error: syntax error or access rule violation - invalid predicate for vector search filtering. A vector search filter must consist of one or more predicates joined by AND, and the combined predicates for each property must specify either an exact value (e.g. x.prop = 1), an open range (e.g. x.prop >= 1), or a between range (e.g. x.prop > 1 AND x.prop < 100). `{ <<expr>> }` does not fulfill this.
4+
error: syntax error or access rule violation - invalid predicate for vector search filtering. A vector search filter must consist of one or more predicates joined by `AND`, and the combined predicates for each property must specify either an exact value (e.g. `x.prop = 1`), an open range (e.g. `x.prop >= 1`), or a between range (e.g. `x.prop > 1 AND x.prop < 100`). `{ <<expr>> }` does not fulfill this.
55

66
== Example scenarios
7-
For example, assuming that you have a vector index created by:
7+
For example, assuming that you have a vector index created by the following command:
88

99
[source,cypher]
1010
----
@@ -14,6 +14,9 @@ FOR (m:Movie) ON m.embedding
1414
WITH [m.rating]
1515
----
1616

17+
18+
.Using `NOT` inside a vector search filter
19+
=====
1720
When trying to use `NOT` inside a vector search filter:
1821
1922
[source,cypher]
@@ -33,9 +36,12 @@ You will receive an error with GQLSTATUS xref:errors/gql-errors/42001.adoc[42001
3336
3437
[source]
3538
----
36-
error: syntax error or access rule violation - invalid predicate for vector search filtering. A vector search filter must consist of one or more predicates joined by AND, and the combined predicates for each property must specify either an exact value (e.g. x.prop = 1), an open range (e.g. x.prop >= 1), or a between range (e.g. x.prop > 1 AND x.prop < 100). `NOT movie.rating = 8` does not fulfill this.
39+
error: syntax error or access rule violation - invalid predicate for vector search filtering. A vector search filter must consist of one or more predicates joined by AND, and the combined predicates for each property must specify either an exact value (e.g. `x.prop = 1`), an open range (e.g. `x.prop >= 1`), or a between range (e.g. `x.prop > 1 AND x.prop < 100`). `NOT movie.rating = 8` does not fulfill this.
3740
----
41+
=====
3842

43+
.Using multiple open ranges on the same property inside a vector search filter
44+
=====
3945
When trying to use multiple open ranges on the same property inside a vector search filter:
4046
4147
[source,cypher]
@@ -55,8 +61,9 @@ You will receive an error with GQLSTATUS xref:errors/gql-errors/42001.adoc[42001
5561
5662
[source]
5763
----
58-
error: syntax error or access rule violation - invalid predicate for vector search filtering. A vector search filter must consist of one or more predicates joined by AND, and the combined predicates for each property must specify either an exact value (e.g. x.prop = 1), an open range (e.g. x.prop >= 1), or a between range (e.g. x.prop > 1 AND x.prop < 100). `movie.rating > 6 AND movie.rating > 8` does not fulfill this.
64+
error: syntax error or access rule violation - invalid predicate for vector search filtering. A vector search filter must consist of one or more predicates joined by AND, and the combined predicates for each property must specify either an exact value (e.g. `x.prop = 1`), an open range (e.g. `x.prop >= 1`), or a between range (e.g. `x.prop > 1 AND x.prop < 100`). `movie.rating > 6 AND movie.rating > 8` does not fulfill this.
5965
----
66+
=====
6067

6168
== Possible solution
6269
Certain predicates are possible to rewrite so they adhere to the rules of vector search filtering.

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
error: syntax error or access rule violation - wrong variable for vector search filtering. The variable `{ <<variable>>1 }` in a vector search filter property predicate must be the same as the search clause binding variable `{ <<variable>>2 }`.
55

66
== Example scenario
7-
For example, assuming that you have a vector index created by:
7+
For example, assuming that you have a vector index created by the following command:
88

99
[source,cypher]
1010
----
@@ -14,7 +14,7 @@ FOR (m:Movie) ON m.embedding
1414
WITH [m.rating]
1515
----
1616

17-
When trying to use another variable than `movie` in the vector search filter in the following query:
17+
When trying to use a variable other than `movie` in the vector search filter in the following query:
1818

1919
[source,cypher]
2020
----

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

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
error: syntax error or access rule violation - self-referencing in vector search. The expression `{ <<expr>> }` in the search clause may not depend on the search clause binding variable `{ <<variable>> }`.
55

66
== Example scenarios
7-
For example, assuming that you have a vector index created by:
7+
For example, assuming that you have a vector index created by the following command:
88

99
[source,cypher]
1010
----
@@ -14,6 +14,8 @@ FOR (m:Movie) ON m.embedding
1414
WITH [m.rating]
1515
----
1616

17+
.Using the search binding variable in the `FOR` subclause of a vector search
18+
=====
1719
When trying to use the search binding variable `movie` in the `FOR` subclause in the following query:
1820
1921
[source,cypher]
@@ -34,7 +36,10 @@ You will receive an error with GQLSTATUS xref:errors/gql-errors/42001.adoc[42001
3436
----
3537
error: syntax error or access rule violation - self-referencing in vector search. The expression `movie.embedding` in the search clause may not depend on the search clause binding variable `movie`.
3638
----
39+
=====
3740

41+
.Using the search binding variable in the `WHERE` subclause of a vector search
42+
=====
3843
When trying to use the search binding variable `movie` in the RHS of the predicate in the `WHERE` subclause in the following query:
3944
4045
[source,cypher]
@@ -57,6 +62,7 @@ You will receive an error with GQLSTATUS xref:errors/gql-errors/42001.adoc[42001
5762
----
5863
error: syntax error or access rule violation - self-referencing in vector search. The expression `movie.year` in the search clause may not depend on the search clause binding variable `movie`.
5964
----
65+
=====
6066

6167
ifndef::backend-pdf[]
6268
[discrete.glossary]

modules/ROOT/pages/errors/gql-errors/index.adoc

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -714,6 +714,10 @@ Status description:: error: data exception - operation not allowed for roles tha
714714

715715
Status description:: error: data exception - operation not allowed for roles with `DENY` privileges. Invalid input: `'{ <<query>> }'` is not allowed for roles with `DENY` privileges.
716716

717+
=== xref:errors/gql-errors/22ND3.adoc[22ND3]
718+
719+
Status description:: 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>> }`.
720+
717721

718722
[[invalid-transaction-state]]
719723
== Invalid transaction state
@@ -1155,6 +1159,18 @@ Status description:: error: syntax error or access rule violation - unsupported
11551159

11561160
Status description:: error: syntax error or access rule violation - mismatched pattern. Pattern, `{ <<input>>1 }`, does not match input, `{ <<input>>2 }`. Verify that the pattern is valid for constructing `{ <<valueType>> }`.
11571161

1162+
=== xref:errors/gql-errors/42I73.adoc[42I73]
1163+
1164+
Status description:: error: syntax error or access rule violation - invalid predicate for vector search filtering. A vector search filter must consist of one or more predicates joined by `AND`, and the combined predicates for each property must specify either an exact value (e.g. `x.prop = 1`), an open range (e.g. `x.prop >= 1`), or a between range (e.g. `x.prop > 1 AND x.prop < 100`). `{ <<expr>> }` does not fulfill this.
1165+
1166+
=== xref:errors/gql-errors/42I74.adoc[42I74]
1167+
1168+
Status description:: error: syntax error or access rule violation - wrong variable for vector search filtering. The variable `{ <<variable>>1 }` in a vector search filter property predicate must be the same as the search clause binding variable `{ <<variable>>2 }`.
1169+
1170+
=== xref:errors/gql-errors/42I75.adoc[42I75]
1171+
1172+
Status description:: error: syntax error or access rule violation - self-referencing in vector search. The expression `{ <<expr>> }` in the search clause may not depend on the search clause binding variable `{ <<variable>> }`.
1173+
11581174
=== xref:errors/gql-errors/42N00.adoc[42N00]
11591175

11601176
Status description:: error: syntax error or access rule violation - graph reference not found. A graph reference with the name `{ <<db>> }` was not found. Verify that the spelling is correct.

0 commit comments

Comments
 (0)