Terms query return distinct field results

similar to this topic, we just want to return a unique list of documents in terms query