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:
1128
1128
1129
1129
archive = libzim.reader.Archive(fpath)
1130
1130
searcher = Searcher(archive)
1131
- query = Query().setQuery ("foo")
1131
+ query = Query().set_query ("foo")
1132
1132
search = 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)
1134
1134
print(path, archive.get_entry_by_path(path).title)"""
1135
1135
search_public_objects = [
1136
1136
Searcher,
@@ -1228,7 +1228,7 @@ Usage:
1228
1228
archive = Archive(fpath)
1229
1229
suggestion_searcher = SuggestionSearcher(archive)
1230
1230
suggestions = 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)
1232
1232
print(path, archive.get_entry_by_path(path).title)"""
1233
1233
suggestion_public_objects = [
1234
1234
SuggestionSearcher
You can’t perform that action at this time.
0 commit comments