You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Creating a series of automatic indexes fails #4879
I tried to follow the example for series of automatic indexes in the SQL - CREATE INDEX docs:
Create a series automatic indexes for the thumbs property in the type Movie:
ArcadeDB> CREATE INDEX ON Movie (thumbs) UNIQUE
ArcadeDB> CREATE INDEX ON Movie (thumbs BY KEY) UNIQUE
ArcadeDB> CREATE INDEX ON Movie (thumbs BY VALUE) UNIQUE
I created the type and property as follows:
create document type Movie
create property Movie.thumbs map of string
Unfortunately, the second and third CREATE INDEX command of the example fail as BY KEY and BY VALUE are apparently not represented in the automatically created index name:
The plain index and the BY KEY / BY VALUE variants are now treated as distinct indexes, so the three commands from the docs no longer collide with each other:
CREATEINDEXON Movie (thumbs) UNIQUE
CREATEINDEXON Movie (thumbs BY KEY) NOTUNIQUE
CREATEINDEXON Movie (thumbs BY VALUE) NOTUNIQUE
Tip: BY KEY/BY VALUE are usually NOTUNIQUE, since the same map key (or value) normally appears across many records. Thanks for reporting!
Activity
tobiasdam commentedon Jul 2, 2026
I tested with version
26.7.1fix(#4879,#4880,#4881): implement CREATE INDEX on MAP with BY KEY/BY …
Merge branch 'issue-4880': CREATE INDEX on MAP with BY KEY/BY VALUE (#…
lvca commentedon Jul 2, 2026
Fixed in
mainand available in the next release.The plain index and the
BY KEY/BY VALUEvariants are now treated as distinct indexes, so the three commands from the docs no longer collide with each other:Tip:
BY KEY/BY VALUEare usuallyNOTUNIQUE, since the same map key (or value) normally appears across many records. Thanks for reporting!test,docs: cover 26.8.x MAP index and nested Cypher params after sync
fix(#4879,#4880,#4881): implement CREATE INDEX on MAP with BY KEY/BY …