diff --git a/js/server/modules/org/arangodb/arango-collection.js b/js/server/modules/org/arangodb/arango-collection.js index bf71f376b0..1a341f1be6 100644 --- a/js/server/modules/org/arangodb/arango-collection.js +++ b/js/server/modules/org/arangodb/arango-collection.js @@ -995,7 +995,7 @@ ArangoCollection.prototype.ensureFulltextIndex = function (fields, minLength) { fields = [ fields ]; } - this.ensureIndex({ + return this.ensureIndex({ type: "fulltext", minLength: minLength || undefined, fields: fields