web search done right
make type of centrality store explicit in config variable name
Mikkel Denker3f69e3f062b4
diff --git a/configs/search_server.toml b/configs/search_server.tomlindex a86d144d..021d3642 100644--- a/configs/search_server.toml+++ b/configs/search_server.toml@@ -5,6 +5,6 @@ shard_id = 0host = "0.0.0.0:3002"index_path = "data/index"entity_index_path = "data/entity"-centrality_store_path = "data/centrality"+host_centrality_store_path = "data/centrality"# linear_model_path = "data/linear_model.json"# lambda_model_path = "data/lambdamart.txt"\ No newline at end of filediff --git a/core/src/entrypoint/search_server.rs b/core/src/entrypoint/search_server.rsindex 734428de..b6ee2dbd 100644--- a/core/src/entrypoint/search_server.rs+++ b/core/src/entrypoint/search_server.rs@@ -44,7 +44,7 @@ pub async fn run(config: SearchServerConfig) -> Result<()> {.entity_index_path.map(|path| EntityIndex::open(path).unwrap());let centrality_store = config- .centrality_store_path+ .host_centrality_store_path.map(SearchCentralityStore::open);let search_index = Index::open(config.index_path)?;diff --git a/core/src/lib.rs b/core/src/lib.rsindex b60ca554..d1429827 100644--- a/core/src/lib.rs+++ b/core/src/lib.rs@@ -230,7 +230,7 @@ pub struct SearchServerConfig {pub shard_id: ShardId,pub index_path: String,pub entity_index_path: Option<String>,- pub centrality_store_path: Option<String>,+ pub host_centrality_store_path: Option<String>,pub linear_model_path: Option<String>,pub lambda_model_path: Option<String>,pub host: SocketAddr,