changed the args position

master
sourcepirate 2020-09-06 18:07:05 +08:00 committed by Damir Jelić
parent e7b3e3527a
commit 42d29b5e94
1 changed files with 3 additions and 1 deletions

View File

@ -94,6 +94,8 @@ impl Searcher {
/// should be ordered by. The field must be declared as a fast field /// should be ordered by. The field must be declared as a fast field
/// when building the schema. Note, this only works for unsigned /// when building the schema. Note, this only works for unsigned
/// fields. /// fields.
/// offset (Field, optional): The offset from which the results have
/// to be returned.
/// ///
/// Returns `SearchResult` object. /// Returns `SearchResult` object.
/// ///
@ -104,9 +106,9 @@ impl Searcher {
_py: Python, _py: Python,
query: &Query, query: &Query,
limit: usize, limit: usize,
offset: usize,
count: bool, count: bool,
order_by_field: Option<&str>, order_by_field: Option<&str>,
offset: usize
) -> PyResult<SearchResult> { ) -> PyResult<SearchResult> {
let mut multicollector = MultiCollector::new(); let mut multicollector = MultiCollector::new();