Beispiel #1
0
    class Meta:
        """Configuration to get all deposits project/videos."""

        index = 'deposits-records-videos'
        doc_types = None
        fields = ('*', )
        default_filter = DefaultFilter(all_drafts_filter)
Beispiel #2
0
    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)
Beispiel #4
0
    class Meta:
        """Configuration for CERN search."""

        index = 'records-videos-video'
        doc_types = None
        fields = ('*', )
        default_filter = DefaultFilter(cern_filter)
Beispiel #5
0
    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)
Beispiel #7
0
    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)
Beispiel #9
0
        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)
Beispiel #10
0
 class Meta:
     index = 'records-hep'
     doc_types = 'hep'
     default_filter = DefaultFilter(inspire_filter)
Beispiel #11
0
    class Meta:
        """Search for documents and series."""

        index = ["documents", "series"]
        doc_types = None
        default_filter = DefaultFilter(search_filter_record_permissions)
Beispiel #12
0
 class Meta:
     default_filter = DefaultFilter(filter_)
Beispiel #13
0
 class Meta:
     """Test configuration."""
     index = ES_INDEX
     doc_types = None
     default_filter = DefaultFilter(filter_record_access_query_enhancer)
Beispiel #14
0
 class Meta:
     index = "records-hep"
     doc_types = "_doc"
     default_filter = DefaultFilter(Q())
Beispiel #15
0
 class Meta:
     index = RECORDS_SEARCH_INDEX
     doc_types = None
     default_filter = DefaultFilter(owner_permission_filter)
Beispiel #16
0
    class Meta:
        """Default index and filter for frontpage search."""

        index = "records"
        doc_types = None
        default_filter = DefaultFilter(rdm_records_filter)
Beispiel #17
0
    class Meta:
        """Define permissions filter."""

        index = "loans"
        doc_types = None
        default_filter = DefaultFilter(loan_permission_filter)
Beispiel #18
0
 class Meta:
     index = 'records'
     default_filter = DefaultFilter(owner_manager_permission_filter)
     doc_types = None
Beispiel #19
0
 class Meta:
     default_filter = DefaultFilter(lambda: Q('terms', public=g.public))
Beispiel #20
0
    class Meta:
        """Search only on documents index."""

        index = "documents"
        doc_types = None
        default_filter = DefaultFilter(search_filter_record_permissions)
Beispiel #21
0
 class Meta:
     index = 'records-hep'
     doc_types = 'hep'
     default_filter = DefaultFilter(Q('match', _collections="Literature"))
Beispiel #22
0
    class Meta:
        """Search only on sources index."""

        index = "sources"
        doc_types = None
        default_filter = DefaultFilter(approveds_filter)