What is Algolia?
Algolia is an American startup company. They provide an easy-to-use search engine service that allows developers to quickly retrieve and search the content on their site.
Can Algolia be used in China?
Short answer: Yes, but it will be slow.
Long answer:
Algolia has a service node in Hong Kong, but there is not a service node in mainland China. As you can see in the figure below, the network delay is between 600-700ms, so it is very slow.
MeiliSearch is the Best Alternative for Algolia
What is MeiliSearch?
MeiliSearch is an open source search engine developed based on the Rust language. It aims to provide users with a powerful and customizable search experience. It includes out-of-the-box features such as spelling error tolerance, filtering, and synonyms for any type of project.
Why Choose MeiliSearch?
MeiliSearch is the ideal alternative to Algolia because is open source, supports Chinese, and their developer community is relatively active. In contrast, Algolia is closed source.
In terms of price, Algolia does offers a free plan but if the monthly search volume exceeds 10,000, then it will be $1 USD / 1,000 searches.
However, MeiliSearch does not have the problem of paying on a pay-per-use basis. This is because most the cost is for the server and traffic.
If you have privacy requirements, using Algolia may be more difficult. This is because Algolia knows what your users are searching and track the data. The open source MeiliSearch can protect your search data, offering a more private solution.
How Deploy MeiliSearch Server?
21YunBox provides an alternative to Algolia in China with their one-click hosting and operations and maintenances free MeiliSearch solution.
- Signup on 21YunBox
- Click “Hosted Application” in the menu of 21YunBox
- Select “MeiliSearch”
- Choose the appropriate server configuration
- Click “Create Now”
In moments, your MeiliSearch will be deployed online. You can then access it through <APP_ID>.21cloudbox.com
.
You can test it in the MeiliSearch dashboard, and you will see that there are no results for the search now. This is because we have not added a search index.
How to Add Search Index to MeiliSearch?
You can load the official example movies.json data set through curl
MeiliSearch, the operation is as follows:
curl \
-X POST'https://<APP_ID>.21cloudbox.com/indexes/movies/documents' \
--data @movies.json
For more information about MeiliSearch, please refer to MeiliSearch official document
How to Search with MeiliSearch?
MeiliSearch provides 6+ languages SDK which can be used directly.
At the same time, MeiliSearch Server also provides a visual web interface, which can be used to test search results, just go to <APP_ID>.21cloudbox.com
to access.
The following is the result of searching for ‘Spiderman 2’
Related Articles:
- Does Firebase Work in China?
- Alternatives to Contentful in China?
- Alternatives to Algolia in China?
- How to Speed-Up Netlify in China?
- How to Speed-Up a Shopify Store in China?