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 titleYou 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.