thibaudcolas / draftail.org

Documentation, blog & demos for Draftail, built with Docusaurus
https://www.draftail.org/
MIT License
8 stars 3 forks source link

Fix Algolia DocSearch #59

Closed thibaudcolas closed 4 years ago

thibaudcolas commented 4 years ago

Contacted support about this,

Hi Algolia,

It seems like DocSearch stopped working on my website, https://www.draftail.org/, which was set up via the open-source sponsoring programme.

- Repository with DocSearch config: https://github.com/thibaudcolas/draftail.org/blob/9fe4f9cc3678d1fb6e452f7d00cf17bfcdf13b7d/website/siteConfig.js#L83-L91
- Crawler config: https://github.com/algolia/docsearch-configs/blob/master/configs/draftail.json

Searching simple terms that should be all over the website like "Markdown", "Keyboard" or "block" returns no results. I can see the search request with the browser DevTools, but it doesn’t return any results:

{
    "results": [
        {
            "hits": [],
            "nbHits": 0,
            "page": 0,
            "nbPages": 0,
            "hitsPerPage": 5,
            "exhaustiveNbHits": true,
            "query": "keyboard",
            "params": "query=keyboard&hitsPerPage=5&facetFilters=%5B%22version%3A1.3.0%22%5D",
            "index": "draftail",
            "processingTimeMS": 1
        }
    ]
}

Could you have a look? I’d also like to have more rights on this app, https://www.algolia.com/apps/BH4D9OD16A/dashboard, currently I get the following message trying to view this:

Please ask the owner of this application (accounts+documentation-search@algolia.com) to grant you necessary permissions.

This feels a bit frustrating as I would like to understand for myself how the index is set up and troubleshoot issues as they arise.

Cheers,

Thibaud
thibaudcolas commented 4 years ago

https://github.com/algolia/docsearch-configs/commit/d610e4196dff1e9a5f956a66aa4882934461a6ba

https://community.algolia.com/docsearch/config-file.html