From b81509df0013ec67af3574a62f6d988c0d5721bf Mon Sep 17 00:00:00 2001 From: Ro Arepally <30358289+RohanArepally@users.noreply.github.com> Date: Tue, 5 Mar 2024 14:17:34 -0500 Subject: [PATCH] Fix relevance and indexing for Algolia search (#629) --- 10_integrations/algolia_indexer.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/10_integrations/algolia_indexer.py b/10_integrations/algolia_indexer.py index 3529ee612..8e9f55459 100644 --- a/10_integrations/algolia_indexer.py +++ b/10_integrations/algolia_indexer.py @@ -40,12 +40,16 @@ CONFIG = { "index_name": "modal_docs", "start_urls": [ - {"url": "https://modal.com/docs/guide", "page_rank": 5}, - {"url": "https://modal.com/docs/examples", "page_rank": 3}, + {"url": "https://modal.com/docs/guide", "page_rank": 2}, + {"url": "https://modal.com/docs/examples", "page_rank": 1}, {"url": "https://modal.com/docs/reference", "page_rank": 1}, ], "selectors": { - "lvl0": "article h1", + "lvl0": { + "selector": ".sidebar .active", + "default_value": "Documentation", + "global": True, + }, "lvl1": "article h1", "lvl2": "article h2", "lvl3": "article h3",