Fixing build.
parent
9158a4fd7d
commit
f3ea129fa7
|
@ -1,3 +1,6 @@
|
||||||
|
.idea
|
||||||
|
**/*.pyc
|
||||||
|
build
|
||||||
/target
|
/target
|
||||||
**/*.rs.bk
|
**/*.rs.bk
|
||||||
Cargo.lock
|
Cargo.lock
|
||||||
|
|
|
@ -37,6 +37,7 @@ can be created to search the index.
|
||||||
"the Gulf Stream and he had gone eighty-four days "
|
"the Gulf Stream and he had gone eighty-four days "
|
||||||
"now without taking a fish."))
|
"now without taking a fish."))
|
||||||
writer.add_document(doc)
|
writer.add_document(doc)
|
||||||
|
writer.commit()
|
||||||
|
|
||||||
reader = index.reader()
|
reader = index.reader()
|
||||||
searcher = reader.searcher()
|
searcher = reader.searcher()
|
||||||
|
|
|
@ -41,6 +41,7 @@ impl FieldValue {
|
||||||
schema::Value::Str(text) => Some(text.into_object(py)),
|
schema::Value::Str(text) => Some(text.into_object(py)),
|
||||||
schema::Value::U64(num) => Some(num.into_object(py)),
|
schema::Value::U64(num) => Some(num.into_object(py)),
|
||||||
schema::Value::I64(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::Bytes(b) => Some(b.to_object(py)),
|
||||||
schema::Value::Date(d) => {
|
schema::Value::Date(d) => {
|
||||||
let date =
|
let date =
|
||||||
|
|
Loading…
Reference in New Issue