mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-02-26 10:53:02 +01:00
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 :^)
8 lines
271 B
Ruby
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")
|
|
}
|