imdb-searcher

command module
v0.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 5, 2024 License: BSD-3-Clause Imports: 1 Imported by: 0

README

IMDb Searcher with MeiliSearch

This is a simple IMDb searcher that uses MeiliSearch to index and search IMDb data. The IMDb data is seeded from the IMDb dataset.

Prerequisites

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.

Usage

To use the IMDb Seeder and Searcher Client, follow these steps:

  1. 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
  1. 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
  1. Use the IMDb Searcher Client to search the data or alternatively use the MeiliSearch API against the index imdb.

Local Development

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.

Documentation

Overview

Copyright © 2024 NAME HERE <EMAIL ADDRESS>

Directories

Path Synopsis
internal
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL