class Meta: """Configuration to get all deposits project/videos.""" index = 'deposits-records-videos' doc_types = None fields = ('*', ) default_filter = DefaultFilter(all_drafts_filter)
class Meta: """Configuration for deposit search.""" index = 'deposits-records-videos-project' doc_types = None fields = ('*', ) default_filter = DefaultFilter(cern_filter)
class Meta: """Configuration for CERN search.""" index = 'records' doc_types = None fields = ('*',) default_filter = DefaultFilter(search_permission_filter)
class Meta: """Configuration for CERN search.""" index = 'records-videos-video' doc_types = None fields = ('*', ) default_filter = DefaultFilter(cern_filter)
class Meta: """Configuration for CERN search.""" index = schema_to_index(Keyword._schema)[0] doc_types = None fields = ('*', ) default_filter = DefaultFilter( Q('bool', filter=[Q('match', deleted=False)]))
class Meta: """Configuration for records search.""" index = 'records' doc_types = None fields = ('*', ) facets = {} default_filter = DefaultFilter(records_filter)
class Meta: """Configuration for deposit search.""" index = 'deposits' doc_types = None fields = ('*', ) facets = { 'status': TermsFacet(field='_deposit.status'), } default_filter = DefaultFilter(deposits_filter)
class Meta: """Configuration for Deposit search.""" index = 'records' # Drafts and Published Records are indexed there doc_types = None fields = ('*', ) facets = { 'status': TermsFacet(field='_deposit.status'), } default_filter = DefaultFilter(owned_deposits_filter)
def __init__(self, **kwargs): # default_filter = DefaultFilter(records_filter(exp_permissions)) self.Meta.index = 'records' self.Meta.doc_types = None self.Meta.fields = ('*', ) # self.Meta.facets = { # 'status': TermsFacet(field='_deposit.status'), # } self.Meta.default_filter = DefaultFilter( records_filter(needs, admin_needs)) super(CapRecordSearch, self).__init__(**kwargs)
class Meta: index = 'records-hep' doc_types = 'hep' default_filter = DefaultFilter(inspire_filter)
class Meta: """Search for documents and series.""" index = ["documents", "series"] doc_types = None default_filter = DefaultFilter(search_filter_record_permissions)
class Meta: default_filter = DefaultFilter(filter_)
class Meta: """Test configuration.""" index = ES_INDEX doc_types = None default_filter = DefaultFilter(filter_record_access_query_enhancer)
class Meta: index = "records-hep" doc_types = "_doc" default_filter = DefaultFilter(Q())
class Meta: index = RECORDS_SEARCH_INDEX doc_types = None default_filter = DefaultFilter(owner_permission_filter)
class Meta: """Default index and filter for frontpage search.""" index = "records" doc_types = None default_filter = DefaultFilter(rdm_records_filter)
class Meta: """Define permissions filter.""" index = "loans" doc_types = None default_filter = DefaultFilter(loan_permission_filter)
class Meta: index = 'records' default_filter = DefaultFilter(owner_manager_permission_filter) doc_types = None
class Meta: default_filter = DefaultFilter(lambda: Q('terms', public=g.public))
class Meta: """Search only on documents index.""" index = "documents" doc_types = None default_filter = DefaultFilter(search_filter_record_permissions)
class Meta: index = 'records-hep' doc_types = 'hep' default_filter = DefaultFilter(Q('match', _collections="Literature"))
class Meta: """Search only on sources index.""" index = "sources" doc_types = None default_filter = DefaultFilter(approveds_filter)