Crawling issue: nbHits 0

I’m running my own crawler using Docker for my docusaurus v2 site, referring to https://docsearch.algolia.com/docs/run-your-own/#run-the-crawl-from-the-docker-image. Below is my configuration.

{
  "index_name": "my-docusaurus2",
  "start_urls": ["https://docusaurus.mysite.com/docs/"],
  "selectors": {
    "lvl0": "#content header h1",
    "lvl1": "#content article h1",
    "lvl2": "#content section h3",
    "lvl3": "#content section h4",
    "lvl4": "#content section h5",
    "lvl5": "#content section h6",
    "text": "#content header p,#content section p,#content section ol"
  }
}

Upon running, it always return 0 records.

$ docker run -it --env-file=.env -e "CONFIG=$(cat algolia-config.json | jq -r tostring)" algolia/docsearch-scraper
> DocSearch: https://docusaurus.mysite.com/docs/ 0 records)
> DocSearch: https://docusaurus.mysite.com/docs/doc2/ 0 records)
> DocSearch: https://docusaurus.mysite.com/docs/mdx/ 0 records)
> DocSearch: https://docusaurus.mysite.com/docs/doc3/ 0 records)
> DocSearch: https://docusaurus.mysite.com/docs/doc1/ 0 records)

Crawling issue: nbHits 0 for my-docusaurus1234

Can anyone point out what the issue is?

Resolved. Turned out the configuration wasn’t correct. It works after updating the config based on sample here.