At present you can only create single key array indexes. other key will be applied post indexscan.
If your second key all the time constant you can use WHEN clause.
CREATE INDEX ix1 ON db( DISTINCT ARRAY v.a FOR v IN OBJECT_VALUES(obj) WHEN v.c = “test” END);
You can create two array indexes but that may not perform due to IntersectScan.
If your filters are equality only or at least one equality (make this first element of array) you can use following technique.
CREATE INDEX ix1 ON db( DISTINCT ARRAY [v.c, v.a] FOR v IN OBJECT_VALUES(obj) END);
SELECT * FROM db WHERE ANY v IN OBJECT_VALUES(obj) SATISFIES [v.c, v.a] = ["test", 4] END