From f3ea129fa7157bf5c67986f6063c000089911b2c Mon Sep 17 00:00:00 2001 From: Paul Masurel Date: Thu, 1 Aug 2019 17:22:40 +0900 Subject: [PATCH] Fixing build. --- .gitignore | 3 +++ README.md | 3 ++- src/field.rs | 1 + 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 9d8e9e5..a05e537 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,6 @@ +.idea +**/*.pyc +build /target **/*.rs.bk Cargo.lock diff --git a/README.md b/README.md index c26d619..6188f65 100644 --- a/README.md +++ b/README.md @@ -37,7 +37,8 @@ can be created to search the index. "the Gulf Stream and he had gone eighty-four days " "now without taking a fish.")) writer.add_document(doc) - + writer.commit() + reader = index.reader() searcher = reader.searcher() diff --git a/src/field.rs b/src/field.rs index 8a7f2e3..af46f53 100644 --- a/src/field.rs +++ b/src/field.rs @@ -41,6 +41,7 @@ impl FieldValue { schema::Value::Str(text) => Some(text.into_object(py)), schema::Value::U64(num) => Some(num.into_object(py)), schema::Value::I64(num) => Some(num.into_object(py)), + schema::Value::F64(num) => Some(num.into_object(py)), schema::Value::Bytes(b) => Some(b.to_object(py)), schema::Value::Date(d) => { let date =