Hi
I have a query as below,
SELECT count(1)
FROM PPPPP
WHERE _class IN [‘XXXX’, ‘YYYY’]
AND ANY subCond IN entity.condition.subConditions SATISFIES (subCond.sellingUOM IS MISSING
AND subCond.type = “ZZZZZ” ) END
AND entity.phase IN [‘AAAAA’ ,‘BBBBB’]
AND entity.endDateTime > NOW_MILLIS()
I am trying to get an index which servers IS Missing on sellingUOM field. This sellingUOM is an attribute in subConditions which is an array. I am trying to create the below index but fails with syntax error. Need help in creating the correct index.
CREATE INDEX idx_01 ON
PPPPP(entity.phase,entity.endDateTime,
ARRAY {subCond.type} FOR subCond IN entity.condition.subConditions END)
WHERE _class IN [‘XXXX’,‘YYYYY’]
AND subCond1.sellingUOM IS MISSING FOR subCond1 IN entity.condition.subConditions END
USING GSI
Regards,
Venkat