diff --git a/invenio_vocabularies/services/service.py b/invenio_vocabularies/services/service.py index 47562a10..e5e14eac 100644 --- a/invenio_vocabularies/services/service.py +++ b/invenio_vocabularies/services/service.py @@ -12,14 +12,7 @@ import sqlalchemy as sa from invenio_cache import current_cache -from invenio_records_resources.services import ( - Link, - LinksTemplate, - RecordService, - RecordServiceConfig, - SearchOptions, - pagination_links, -) +from invenio_records_resources.services import LinksTemplate, RecordService from invenio_records_resources.services.base.utils import map_search_params from invenio_records_resources.services.records.schema import ServiceSchemaWrapper from invenio_records_resources.services.uow import unit_of_work @@ -32,6 +25,10 @@ class VocabularyTypeService(RecordService): """Vocabulary type service.""" + def rebuild_index(self, identity, uow=None): + """Raise error since services are not backed by search indices.""" + raise NotImplementedError() + def search(self, identity, params=None): """Search for vocabulary types entries.""" self.require_permission(identity, "list_vocabularies")