algolia / docsearch

:blue_book: The easiest way to add search to your documentation.
https://docsearch.algolia.com
MIT License
3.97k stars 384 forks source link

Why my doc search has show error (Cannot read properties of undefined (reading 'lvl1')) #1822

Closed Trandat2022 closed 9 months ago

loicsay commented 1 year ago

Hello @Trandat2022, Could you provide more infomation about the issue please? (console screenshot, context, codesanbox link or a production link)

Thanks!

Trandat2022 commented 1 year ago

@loicsay https://codesandbox.io/s/snowy-sun-zklo7m?file=/src/App.js this here , tks u

loicsay commented 1 year ago

Hi @Trandat2022 ,

I see that you're on a Free plan. It doesn't include all the features needed to work with DocSearch. To use DocSearch, please apply here https://docsearch.algolia.com/apply/!

ChetSocio commented 9 months ago

Hello @loicsay Thank you dude, I literally wasted my whole day trying to integrate algolia into my platform. I thought to upgrade once I reach my limits as explained in pricing page but you literally have fuckin useless documentation and business model.

If this is not possible for you, you're free to open your own Algolia account and run DocSearch on your own without this limitation. In that case, though, depending on the size of your documentation, you might need a paid account (free accounts can hold as much as 10k records).

Please read what this paragraph says in your official website. It says we can use api key until we reach limits of 10k records if we are not open source but want to integrate docsearch into our website. Either change your package logic to accept both paid and free accounts or remove this paragraph from your website. I wanted to create search feature like digitalocean in first place.

clemfromspace commented 9 months ago

Hello @ChetSocio,

Again, we are sorry for the time you spent trying to integrate DocSearch and we understand your frustration. As my colleague @loicsay mentioned, we would be happy to support you through https://docsearch.algolia.com/apply/, which is the official way to request DocSearch applications.

As mentioned on https://docsearch.algolia.com/docs/legacy/run-your-own/ and on the docsearch-scraper repository, running your own scraper is not officially supported anymore.

P.S: We recently updated our Who can apply list, and being open-source is not a requirement anymore (your website have to be publicly available though).