Skip to content

Latest commit

 

History

History
35 lines (27 loc) · 947 Bytes

File metadata and controls

35 lines (27 loc) · 947 Bytes

42I69

Status description

error: syntax error or access rule violation - invalid search variable reference. { [variable] } must reference a variable from the same MATCH statement.

Example scenario

For example, when trying to use a variable from a previous MATCH statement as variable reference in a SEARCH clause:

CYPHER 25
MATCH (movie:Movie)
MATCH (m:Movie {title:'Matrix, The'})
  SEARCH movie IN (
    VECTOR INDEX moviePlots
    FOR [1, 2, 3]
    LIMIT 5
  )
RETURN movie.title AS title

You will receive an error with GQLSTATUS 42001 with a cause with GQLSTATUS 42I69 and status description:

error: syntax error or access rule violation - invalid search variable reference. `movie` must reference a variable from the same `MATCH` statement.

Glossary