We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e6ca2c1 commit b455881Copy full SHA for b455881
openedx/core/djangoapps/content/search/documents.py
@@ -384,9 +384,15 @@ def searchable_doc_for_collection(collection) -> dict:
384
like Meilisearch or Elasticsearch, so that the given collection can be
385
found using faceted search.
386
"""
387
+ usage_key = lib_api.get_library_collection_usage_key(
388
+ library_key=LibraryLocatorV2.from_string(collection.learning_package.key),
389
+ collection_key=collection.key,
390
+ )
391
+
392
doc = {
393
Fields.id: collection.id,
394
Fields.block_id: collection.key,
395
+ Fields.usage_key: str(usage_key),
396
Fields.type: DocType.collection,
397
Fields.display_name: collection.title,
398
Fields.description: collection.description,
0 commit comments