Skip to content

Commit

Permalink
allowed configuring of the address, meili is served from
Browse files Browse the repository at this point in the history
This is relevant for an eazier getting started guide for the webclient
  • Loading branch information
CommanderStorm committed Sep 30, 2022
1 parent 2f47066 commit 7c54814
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/src/core/search/search_executor/meilisearch.rs
Expand Up @@ -71,7 +71,6 @@ pub(super) struct MSHit {
}

#[derive(Deserialize, Clone)]
#[allow(dead_code)]
pub(super) struct FormattedMSHit {
// This contains all the atributes of MSHit, but formatted by MS. We only need some, so only some are listed here.
pub(super) name: String,
Expand Down Expand Up @@ -104,7 +103,8 @@ pub(super) async fn do_meilisearch(client: Client, args: MSSearchArgs) -> Result
// meilisearch should not be a public service as by their docs,
// this is why we only let users configure the port here :)
let url = format!(
"http://localhost:{}/indexes/entries/search",
"http://{}:{}/indexes/entries/search",
std::env::var("MIELI_SEARCH_ADDR").unwrap_or_else(|_| "localhost".to_string()),
std::env::var("API_SVC_SERVICE_PORT_MIELI_SEARCH").unwrap_or_else(|_| "7700".to_string())
);

Expand Down

0 comments on commit 7c54814

Please sign in to comment.