There are a couple of ways you can rank your DocSearch results.
Via the Crawler configuration: we provide an option to boost the weight of a page by adding a pageRank field to the extractor (see documentation) directly in the Crawler config.
You can programmatically detect the page you’d like to boost by either:
-
Analyzing the URL that is being crawled
- The URL object is available in the parameters of the recordExtractor, see documentation
- Adding some extra informations in your DOM (e.g. a latest meta tag in the head), and retrieve it using the available cheerio instance
Via the Algolia dashboard: some ranking can be applied from the dashboard itself (Search > Index > Configuration > Ranking and Sorting), see documentation. These settings are not overridden by the Crawler config at each crawl.
The free DocSearch plan, doesn't include technical web support from the Support team. For further assistance, you can post your question on the Algolia Community Forum or Discord. For front-end issues, you can raise the issue directly on GitHub. In addition, you can review our DocSearch Documentation and FAQ.