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 =