Skip to content

CREATE INDEX <name> IF NOT EXISTS answers created:true but does not create the name (follow-up to #5675/#5740, still on 26.8.1) #6921

Closed

Description

@NooriUta

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 them

Expected

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); only arcadedb.server.rootPassword and arcadedb.server.defaultDatabases were set via JAVA_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

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

  1. added this to the 26.9.1 milestone on Aug 31, 2026
  2. added
    engine
    on Aug 31, 2026
  3. self-assigned this
    on Sep 1, 2026
  4. added a commit that references this issue on Sep 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugenginesql

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions