Changeset View
Changeset View
Standalone View
Standalone View
swh/indexer/storage/in_memory.py
Show First 20 Lines • Show All 645 Lines • ▼ Show 20 Lines | def origin_intrinsic_metadata_add(self, metadata, | ||||
""" | """ | ||||
self._origin_intrinsic_metadata.add(metadata, conflict_update) | self._origin_intrinsic_metadata.add(metadata, conflict_update) | ||||
def origin_intrinsic_metadata_delete(self, entries): | def origin_intrinsic_metadata_delete(self, entries): | ||||
"""Remove origin metadata from the storage. | """Remove origin metadata from the storage. | ||||
Args: | Args: | ||||
entries (dict): dictionaries with the following keys: | entries (dict): dictionaries with the following keys: | ||||
- **id** (str): origin url | - **id** (str): origin url | ||||
- **indexer_configuration_id** (int): tool used to compute | - **indexer_configuration_id** (int): tool used to compute | ||||
metadata | metadata | ||||
""" | """ | ||||
self._origin_intrinsic_metadata.delete(entries) | self._origin_intrinsic_metadata.delete(entries) | ||||
def origin_intrinsic_metadata_search_fulltext( | def origin_intrinsic_metadata_search_fulltext( | ||||
self, conjunction, limit=100): | self, conjunction, limit=100): | ||||
▲ Show 20 Lines • Show All 187 Lines • Show Last 20 Lines |