Skip to content

Commit 11f8bc4

Browse files
authored
Update to tantivy v0.21.0 (#132)
1 parent 4af7d7c commit 11f8bc4

File tree

5 files changed

+109
-96
lines changed

5 files changed

+109
-96
lines changed

Cargo.lock

Lines changed: 63 additions & 90 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ pyo3-build-config = "0.19.1"
1515

1616
[dependencies]
1717
chrono = "0.4.23"
18-
tantivy = "0.20.1"
18+
tantivy = "0.21.0"
1919
itertools = "0.10.5"
2020
futures = "0.3.26"
2121
pythonize = "0.19.0"

src/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ use index::Index;
1616
use query::Query;
1717
use schema::Schema;
1818
use schemabuilder::SchemaBuilder;
19-
use searcher::{DocAddress, SearchResult, Searcher};
19+
use searcher::{DocAddress, Order, SearchResult, Searcher};
2020
use snippet::{Snippet, SnippetGenerator};
2121

2222
/// Python bindings for the search engine library Tantivy.
@@ -71,6 +71,7 @@ use snippet::{Snippet, SnippetGenerator};
7171
///
7272
#[pymodule]
7373
fn tantivy(_py: Python, m: &PyModule) -> PyResult<()> {
74+
m.add_class::<Order>()?;
7475
m.add_class::<Schema>()?;
7576
m.add_class::<SchemaBuilder>()?;
7677
m.add_class::<Searcher>()?;

0 commit comments

Comments
 (0)