Skip to content

Native: get_vector_index() and list_vector_indexes() miss a vector index whose name is not Type[property] #288

Closed

Description

@tae898

On the native build (arcadedb 26.11.1), db.schema.get_vector_index(type_name, property) returns None and db.schema.list_vector_indexes() leaves out a vector index whose name is not Type[property]. The same call on arcadedb-jvm 26.11.1 returns the VectorIndex. 26.11.1 lets openCypher name the index (CREATE VECTOR INDEX <name> FOR ... ON ...), so a name without brackets is now the usual case for a Neo4j-style script.

Repro (run once with arcadedb==26.11.1 and once with arcadedb-jvm==26.11.1):

import tempfile
import arcadedb

db = arcadedb.create_database(tempfile.mkdtemp() + "/db")
db.command(
    "opencypher",
    "CREATE VECTOR INDEX article_embedding FOR (n:Article) ON n.embedding "
    "OPTIONS {indexConfig: {`vector.dimensions`: 3}}",
)
print(arcadedb.__backend__, db.schema.get_vector_index("Article", "embedding"))
print(db.schema.list_vector_indexes())
db.close()
Build get_vector_index("Article", "embedding") list_vector_indexes()
arcadedb (native) None []
arcadedb-jvm a VectorIndex ['article_embedding', 'Article_0_<id>']

The statements work on both builds (SEARCH ... IN (VECTOR INDEX article_embedding ...) returns the same rows), so only the Python VectorIndex object (find_nearest, get_metadata, get_stats, warm_up) is out of reach on native for such an index.

The cause is in src/arcadedb/_native/database.py:1617-1625: _vector_rows() keeps a row only when "[" in r["name"], to skip the per-bucket rows, which assumes the type-level index is always called Type[property]. The type-level row of article_embedding has no fileId and indexType LSM_VECTOR, so testing for the missing fileId alone would keep it and still skip the bucket rows. I did not change the code.

I found this while writing the openCypher vector section of the docs (#267, row 7). The page says what is true on both builds and a strict xfail test on the native build pins this gap.

Activity

  1. added
    vector
    on Nov 6, 2026
  2. added a commit that references this issue on Nov 6, 2026
    bbcd2b6
  3. added
    in progress
    on Nov 6, 2026
  4. modified the milestone: 26.12.1 on Nov 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    in progressvector

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions