How to find the distinct values in the array in all the indexes using elasticsearch-dsl?
How to find the distinct values in the array in all the indexes using elasticsearch-dsl? I am using elasticsearch-dsl in django. And I have a DocType document defined and a keyword containing a list of values. Here is my code for the same. from elasticsearch_dsl import DocType, Text, Keyword class ProductIndex(DocType): """ Index for products """ id = Keyword() slug = Keyword() name = Text() filter_list = Keyword() filter_list is the array here which contains multiple values. Now I have some values say sample_filter_list which are the distinct values from and some of these elements can be present in some product's filter_list array. So given this sample_filter_list, I want all the unique elements of filter_list of all the products whose filter_list intersection with sample_filter_list in not null. for example I have 5 products whose filter_list is like : 1) ['a', 'b', 'c'] 2) ['d', 'e'...
