def get_queryset(self): excluded_fields = list( set(WebappIndexer.hidden_fields + WebsiteIndexer.hidden_fields)) return (Search(using=BaseIndexer.get_es(), index=self._get_indices(), doc_type=self._get_doc_types()).extra( _source={'exclude': excluded_fields}))
def get_queryset(self): excluded_fields = list(set(WebappIndexer.hidden_fields + WebsiteIndexer.hidden_fields)) return (Search(using=BaseIndexer.get_es(), index=self._get_indices(), doc_type=self._get_doc_types()) .extra(_source={'exclude': excluded_fields}))
def get_queryset(self): excluded_fields = list(set(WebappIndexer.hidden_fields + WebsiteIndexer.hidden_fields)) co_filters = self._get_colombia_filter() qs = (Search(using=BaseIndexer.get_es(), **self.get_doc_types_and_indices()) .extra(_source={'exclude': excluded_fields})) if co_filters: return qs.filter(co_filters) return qs
def get_queryset(self): excluded_fields = list( set(indexers.WebappIndexer.hidden_fields + ws_indexers.WebsiteIndexer.hidden_fields + e_indexers.ExtensionIndexer.hidden_fields)) co_filters = self._get_colombia_filter() qs = (Search(using=BaseIndexer.get_es(), **self.get_doc_types_and_indices()).extra( _source={'exclude': excluded_fields})) if co_filters: return qs.filter(co_filters) return qs
def get_queryset(self): return Search( using=BaseIndexer.get_es(), index=[WebappIndexer.get_index(), WebsiteIndexer.get_index()], doc_type=[WebappIndexer.get_mapping_type_name(), WebsiteIndexer.get_mapping_type_name()])