ElasticSearch query to filter out distinct results

Hey, @spinscale thanks for the response.

I was able to get result with distinct artifacts.

And for pagination, I followed this article Total hits with field collapsing