Skip to content

Latest commit

 

History

History
33 lines (26 loc) · 780 Bytes

File metadata and controls

33 lines (26 loc) · 780 Bytes

22NCG

Status description

error: data exception - wrong index type. Expected the index { [idx] } to be a { [idxType]1 } index but was a { [idxType]2 } index.

Example scenario

For example, assuming that you have a range index called rangeIdx, when trying to use it in a SEARCH clause:

CYPHER 25
MATCH (movie:Movie)
  SEARCH movie IN (
    VECTOR INDEX rangeIdx
    FOR [1, 2, 3]
    LIMIT 5
  )
RETURN movie.title AS title

You will receive an error with GQLSTATUS 22NCG and status description:

error: data exception - wrong index type. Expected the index `rangeIdx` to be a vector index but was a range index.

Glossary