diff --git a/summa-core/Cargo.toml b/summa-core/Cargo.toml index 2b1a5a5b..5fa1b5c7 100644 --- a/summa-core/Cargo.toml +++ b/summa-core/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "summa-core" -version = "0.23.0" +version = "0.23.2" authors = ["Pasha Podolsky "] edition = "2021" license-file = "LICENSE" diff --git a/summa-core/src/components/summa_document.rs b/summa-core/src/components/summa_document.rs index a0c3efeb..40b5d93d 100644 --- a/summa-core/src/components/summa_document.rs +++ b/summa-core/src/components/summa_document.rs @@ -56,6 +56,9 @@ pub fn process_dynamic_fields(schema: &Schema, json_object: &mut serde_json::Map } } } + if schema.get_field("updated_at").is_ok() { + json_object.insert("updated_at".to_string(), json!(current_time())); + } } /// Parse single json value diff --git a/summa-embed-py/Cargo.toml b/summa-embed-py/Cargo.toml index 4f36f2bd..8429c85c 100644 --- a/summa-embed-py/Cargo.toml +++ b/summa-embed-py/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "summa-embed-py" -version = "0.23.0" +version = "0.23.2" edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html @@ -17,8 +17,8 @@ pyo3-asyncio = { version = "0.19", features = ["attributes", "tokio-runtime"] } pyo3-log = "0.8" pythonize = "0.19" serde_json = "1.0" -summa-core = { version = "0.23.0", path = "../summa-core", default_features = false, features = ["fs", "hyper-external-request", "tokio-rt"] } -summa-server = { version = "0.23.0", path = "../summa-server", default_features = false } +summa-core = { version = "0.23.2", path = "../summa-core", default_features = false, features = ["fs", "hyper-external-request", "tokio-rt"] } +summa-server = { version = "0.23.2", path = "../summa-server", default_features = false } summa-proto = { workspace = true } tantivy = { workspace = true } tokio = { workspace = true } \ No newline at end of file diff --git a/summa-server/Cargo.toml b/summa-server/Cargo.toml index 881a0b89..7889ab96 100644 --- a/summa-server/Cargo.toml +++ b/summa-server/Cargo.toml @@ -1,7 +1,7 @@ [package] edition = "2021" name = "summa-server" -version = "0.23.0" +version = "0.23.2" license-file = "LICENSE" description = "Fast full-text search server" homepage = "https://github.com/izihawa/summa" @@ -30,7 +30,7 @@ maintenance = { status = "actively-developed" } tonic-build = { version = "0.10", default-features = false, features = ["prost", "transport"] } [dev-dependencies] -summa-core = { version = "0.23.0", path = "../summa-core", features = ["fs", "hyper-external-request", "tokio-rt"] } +summa-core = { version = "0.23.2", path = "../summa-core", features = ["fs", "hyper-external-request", "tokio-rt"] } tempdir = "0.3.7" [dependencies] @@ -59,7 +59,7 @@ serde = { workspace = true } serde_derive = "1.0" serde_json = { workspace = true } serde_yaml = { workspace = true } -summa-core = { version = "0.23.0", path = "../summa-core", features = ["fs", "hyper-external-request", "tokio-rt"] } +summa-core = { version = "0.23.2", path = "../summa-core", features = ["fs", "hyper-external-request", "tokio-rt"] } summa-proto = { workspace = true, features = ["grpc"] } take_mut = { workspace = true } tantivy = { workspace = true } diff --git a/summa-wasm/Cargo.toml b/summa-wasm/Cargo.toml index 51775e18..99165ec9 100644 --- a/summa-wasm/Cargo.toml +++ b/summa-wasm/Cargo.toml @@ -26,7 +26,7 @@ prost = { workspace = true } serde = { workspace = true } serde-wasm-bindgen = "0.6" strfmt = { workspace = true } -summa-core = { version = "0.23.0", path = "../summa-core", default_features = false } +summa-core = { version = "0.23.2", path = "../summa-core", default_features = false } summa-proto = { workspace = true } tantivy = { workspace = true, features = ["wasm"] } thiserror = { workspace = true }