Don't push the distinct to indexer.
CREATE INDEX ix1 ON default(docid);
SELECT DISTINCT docid FROM default b1 JOIN default b2 ON KEYS b1.docid WHERE docid = "abc";