change index name to uid

This commit is contained in:
mpostma
2021-03-11 22:47:29 +01:00
parent 8617bcf8bd
commit 271c8ba991
3 changed files with 40 additions and 40 deletions

View File

@ -90,7 +90,7 @@ impl Data {
pub async fn create_index(&self, name: impl AsRef<str>, primary_key: Option<impl AsRef<str>>) -> anyhow::Result<IndexMetadata> {
let settings = IndexSettings {
name: Some(name.as_ref().to_string()),
uid: Some(name.as_ref().to_string()),
primary_key: primary_key.map(|s| s.as_ref().to_string()),
};