This is a simple IMDb searcher that uses MeiliSearch to index and search IMDb data. The IMDb data is seeded from the IMDb dataset.
Before you can use the IMDb Seeder and Searcher Client, you must have the following prerequisites installed and configured:
- Go: The client is written in Go. You need Go 1.21 or later installed on your machine to compile and run the Go programs. Download it from the Go official site.
- MeiliSearch: Although the client automatically sets up MeiliSearch using Docker, having MeiliSearch installed locally for development purposes can be helpful. Visit the MeiliSearch documentation for installation instructions.
To use the IMDb Seeder and Searcher Client, follow these steps:
- Configure the MeiliSearch server.
Option | Description | Example |
---|---|---|
--meili-host | The fully qualified Host with protocol and port | http://localhost:7700 |
--meili-master-key | API Key for accessing Meilisearch | (optional) only required if MEILI_ENV!=development |
--meili-timeout | Duration to timeout connection after | 5s |
- Run the IMDb Seeder to index the IMDb data into MeiliSearch. See Tests for some examples.
go run main.go --meili-host=http://localhost:7700
- Use the IMDb Searcher Client to search the data or alternatively use the
MeiliSearch API against the index
imdb
.
There is a compose file that can be used to start a local MeiliSearch server and compile and run the IMDb Seeder.
Note: Not affiliated with IMDb. This is a personal project for educational purposes only.