Readding s in datetime precision variant names (#2065)

There is no clear win and it change some serialization in quickwit.
This commit is contained in:
Paul Masurel
2023-06-01 13:39:46 +09:00
committed by GitHub
parent 184a9daa8a
commit 7ee78bda52
5 changed files with 15 additions and 30 deletions

View File

@@ -13,7 +13,7 @@ fn main() -> tantivy::Result<()> {
let opts = DateOptions::from(INDEXED)
.set_stored()
.set_fast()
.set_precision(tantivy::DateTimePrecision::Second);
.set_precision(tantivy::DateTimePrecision::Seconds);
// Add `occurred_at` date field type
let occurred_at = schema_builder.add_date_field("occurred_at", opts);
let event_type = schema_builder.add_text_field("event", STRING | STORED);