diff --git a/services/search-index-lambda/src/main.rs b/services/search-index-lambda/src/main.rs --- a/services/search-index-lambda/src/main.rs +++ b/services/search-index-lambda/src/main.rs @@ -172,7 +172,7 @@ query: Query { r#match: None, term: Some(Term { - user_id: user_id.clone(), + user_id_keyword: user_id.clone(), }), }, script: Some(Script { diff --git a/services/search-index-lambda/src/query.rs b/services/search-index-lambda/src/query.rs --- a/services/search-index-lambda/src/query.rs +++ b/services/search-index-lambda/src/query.rs @@ -31,6 +31,6 @@ #[derive(Serialize)] pub struct Term { - #[serde(rename = "userID")] - pub user_id: String, + #[serde(rename = "userID.keyword")] + pub user_id_keyword: String, }