Repository navigation
Description
Summary
CREATE INDEX <name> IF NOT EXISTS ON <Type> (<prop>) FULL_TEXT answers created: true under the requested name while silently reusing a pre-existing index on the same property. The requested name is never created, so any later lookup by that name fails.
This is a follow-up to #5675 / #5765. The fix #5740 shipped in the 26.8.1 milestone, but the behaviour is unchanged on the released 26.8.1.
Why the name matters
Ranking is only reachable through the name: SELECT $score ... WHERE SEARCH_INDEX('<name>', :q) = true. When the name does not exist, the query fails outright — or, in code paths that fall back to a scan, results are still returned but unranked. Both outcomes are silent from the caller's point of view: the created: true answer says the index is there.
For us this surfaced as an application that believed its schema was fully provisioned while full-text ranking was quietly gone.
Steps to reproduce
Against a fresh database:
CREATE VERTEX TYPE RgDoc;
CREATE PROPERTY RgDoc.body STRING;
INSERT INTO RgDoc SET body = 'TOKEN one';
INSERT INTO RgDoc SET body = 'TOKEN two';
-- first index on the property, explicitly named
CREATE INDEX rgFt ON RgDoc (body) FULL_TEXT;
-- second, different name, same property
CREATE INDEX rgFt2 IF NOT EXISTS ON RgDoc (body) FULL_TEXT;
-- => responds created: true, referring to rgFt2
SELECT name FROM schema:indexes WHERE name LIKE '%RgDoc%';
-- => rgFt2 is NOT among themExpected
Either the named index is actually created, or the statement reports that nothing was created. created: true under a name that does not exist afterwards is the problematic part — it is indistinguishable from success.
Actual
created: true is returned for rgFt2; the schema contains only the pre-existing index (and the auto-generated RgDoc[body] / RgDoc_0_<n> entries). A subsequent SEARCH_INDEX('rgFt2', ...) fails with Index with name 'rgFt2' was not found.
Environment
- ArcadeDB 26.8.1, build
727aa4568cdface314ee15cd242f71d6299b2b0c/1785790932717/main - Official image
arcadedata/arcadedb:26.8.1, bundled JRE (not overridden); onlyarcadedb.server.rootPasswordandarcadedb.server.defaultDatabaseswere set viaJAVA_OPTS - Single node, HTTP API (
POST /api/v1/command/<db>), no plugins enabled - Measured 2026-08-30 by an automated regression suite that runs the same case against two versions side by side. The same case also fails on 26.7.2, i.e. the behaviour predates fix(engine) #5675: CREATE INDEX IF NOT EXISTS answers for the index asked for, not for any index on those properties #5740.
Related
- Index create regression #5675 — original
CREATE INDEX IF NOT EXISTSregression - fix(engine) #5675: CREATE INDEX IF NOT EXISTS answers for the index asked for, not for any index on those properties #5740 — fix, milestone 26.8.1
- Follow-ups from #5675: ManualIndexBuilder still silently drops indexes, plus three smaller items #5765 — earlier follow-up (
ManualIndexBuildersilently drops indexes)
I checked the open issues in the 26.9.1 milestone before filing and did not find this case; #5791 / #5925 / #6869 cover REBUILD INDEX losing the name, which is a different statement.
Activity
fix(engine) #6921: CREATE INDEX <name> IF NOT EXISTS answers for the …