Screenshot of Algolia’s official website
What is Algolia?
Algolia, an American startup, offers an easy-to-use search engine that allows developers to quickly search for content on their site.
Is Algolia available domestically?
Short answer: slow.
The long answer:
Algolia has service nodes in Hong Kong, but no service nodes in Mainland China. As you can see in the figure below, the network delay is between 600ms and 700ms, so it is very slow.
Network access delays at Algolia nodes in Hong Kong
Algolia’s open source alternative: MeiliSearch
Screenshot of MeiliSearch website
What is MeiliSearch?
MeiliSearch is an open source search engine based on the Rust language. It is designed to provide users with a powerful and customizable search experience, including out-of-the-box features such as spelling error tolerance, filtering and synonyms for any type of item.
Why MeiliSearch?
Because MeiliSearch is open source and supports Chinese, they have an active developer community. In contrast, Algolia is closed source.
In terms of price, Algolia offers a free solution, but if you get more than 10,000 searches per month, then it’s $1 per 1,000 searches.
MeiliSearch, on the other hand, doesn’t have a pay-per-view problem. At best, it’s the cost of the server and the traffic.
Finally, from a privacy perspective, if you want privacy, Algolia might be a bit more difficult to do, because Algolia basically knows what your users are searching for, whereas the open source MeiliSearch basically protects your search data.
How to quickly install a MeiliSearch Server?
21 Cloud Box offers one-click hosting, o&m free MeiliSearch as Algolia’s domestic alternative.
- Register as a member of 21 Cloud Box
- Click “Hosted Application” in the 21 Cloud Box menu
- Choose “MeiliSearch”
- Select the appropriate server configuration
- Click Create Now
In less time than a cup of tea, your MeiliSearch is deployed online, which you can access via
.21yunbox.com.
MeiliSearch has not loaded the search index
You can test it in the MeiliSearch Dashboard and you’ll see that the Search is now fruitless because we haven’t added the Search Index yet.
How do I add a search index to MeiliSearch?
Curl curl curl curl curl curl curl curl curl curl
curl \
-X POST 'https://<APP_ID>.21yunbox.com/indexes/movies/documents' \
--data @movies.json
Copy the code
More information about search indexes can be found in the official MeiliSearch documentation.
How do I search using MeiliSearch?
MeiliSearch provides SDKS in 6+ languages that can be used directly. MeiliSearch Server also provides a visual Web interface that can be used to test search results by visiting the service name.21yunbox.com.
The following is the result of a search for ‘spiderman 2’
The search for ‘spiderman 2’ returns results
Other related blogs:
- Contentful domestic alternative
- How do I deploy the Gatsby project to the server?
- How do I deploy the Next. Js project to the server?
- How do I deploy the Nuxt.js project to the server?
- How to improve Netlify access speed in China?
- How to improve Vercel access speed in the country?
- How to speed up Heroku’s access to the country?
From 21 cloud box official blog: www.21yunbox.com/blog/soluti…