title: Script writing to get Distinct value from Elasticsearch
body: <p>I want to create a custom distinct function where I can write simple distinctBy script of multiple field names to be distinct together. So is there anyway in ElasticSearch to achieve this.     </p>