retrospring/config/initializers/meilisearch.rb
Georg Gadinger 44871cbf4a add meilisearch
this thing is way too fast!  only downside is that indexing takes a bit
longer, and the search indexes are big (16Gi for 2.7 million records)

i have no idea how to properly integrate it in the UI, but it seems
promising :^)
2023-10-22 19:51:19 +02:00

8 lines
271 B
Ruby

# frozen_string_literal: true
return unless ENV["SEARCH_ENABLED"] == "true"
MeiliSearch::Rails.configuration = {
meilisearch_url: ENV.fetch("MEILISEARCH_HOST", "http://localhost:7700"),
meilisearch_api_key: ENV.fetch("MEILISEARCH_API_KEY", "justfordev42069e621")
}