I am trying to run a query to get the document keys for items that have duplicate field values.
Can I run a single query to get the document keys for the results of this query? Or rewrite the query to accomplish the goal above?
SELECT t1.somefield, t1.fieldcount FROM
(SELECT somefield, fieldcount FROM `mybucket` WHERE `somefield` IS NOT MISSING GROUP BY somefield
LETTING fieldcount = COUNT(somefield) ) as t1
WHERE t1.fieldcount > 1;