Fixing build.

master
Paul Masurel 2019-08-01 17:22:40 +09:00
parent 9158a4fd7d
commit f3ea129fa7
3 changed files with 6 additions and 1 deletions

3
.gitignore vendored
View File

@ -1,3 +1,6 @@
.idea
**/*.pyc
build
/target
**/*.rs.bk
Cargo.lock

View File

@ -37,6 +37,7 @@ 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()

View File

@ -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 =