From 42d29b5e94afec6a1c5ccd1dd4c1a9b4a4a1ce5f Mon Sep 17 00:00:00 2001 From: sourcepirate Date: Sun, 6 Sep 2020 18:07:05 +0800 Subject: [PATCH] changed the args position --- src/searcher.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/searcher.rs b/src/searcher.rs index 282fb85..b0bbc5c 100644 --- a/src/searcher.rs +++ b/src/searcher.rs @@ -94,6 +94,8 @@ impl Searcher { /// should be ordered by. The field must be declared as a fast field /// when building the schema. Note, this only works for unsigned /// fields. + /// offset (Field, optional): The offset from which the results have + /// to be returned. /// /// Returns `SearchResult` object. /// @@ -104,9 +106,9 @@ impl Searcher { _py: Python, query: &Query, limit: usize, - offset: usize, count: bool, order_by_field: Option<&str>, + offset: usize ) -> PyResult { let mut multicollector = MultiCollector::new();