File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1128,9 +1128,9 @@ Usage:
11281128
11291129archive = libzim.reader.Archive(fpath)
11301130searcher = Searcher(archive)
1131- query = Query().setQuery ("foo")
1131+ query = Query().set_query ("foo")
11321132search = searcher.search(query)
1133- for path in search.getResult (10, 10) # get result from 10 to 20 (10 results)
1133+ for path in search.getResults (10, 10) # get result from 10 to 20 (10 results)
11341134 print(path, archive.get_entry_by_path(path).title)"""
11351135search_public_objects = [
11361136 Searcher,
@@ -1228,7 +1228,7 @@ Usage:
12281228archive = Archive(fpath)
12291229suggestion_searcher = SuggestionSearcher(archive)
12301230suggestions = suggestion_searcher.suggest("foo")
1231- for path in suggestion.getResult (10, 10) # get result from 10 to 20 (10 results)
1231+ for path in suggestion.getResults (10, 10) # get result from 10 to 20 (10 results)
12321232 print(path, archive.get_entry_by_path(path).title)"""
12331233suggestion_public_objects = [
12341234 SuggestionSearcher
You can’t perform that action at this time.
0 commit comments