Is there any way to de-duplicated documents based on the field?

The following were the use cases

I need to de-duplicate the documents based on a specified field. Meanwhile I noticed the post filter which could filter the search results on hits, while it seems doesn't make any sense to my case.

Could anyone could offer me some suggestions on it? or Elasticsearch plan to provide some solutions on that?