예제 #1
0
 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}))
예제 #2
0
파일: views.py 프로젝트: Jobava/zamboni
 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}))
예제 #3
0
파일: views.py 프로젝트: elysium001/zamboni
 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
예제 #4
0
 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
예제 #5
0
파일: views.py 프로젝트: clouserw/zamboni
 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()])