You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+10Lines changed: 10 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -32,6 +32,7 @@ PySubstringSearch is a library designed to search over an index file for substri
32
32
33
33
The module implements a method for searching.
34
34
-`search` - Find different entries with the same substring concurrently. Concurrency increases as the index file grows in size with multiple inner chunks.
35
+
-`search_multiple` - same as `search` but accepts multiple substrings in a single call
35
36
36
37
37
38
### Built With
@@ -105,6 +106,15 @@ reader.search('short')
105
106
# lookup for a substring
106
107
reader.search('string')
107
108
>>> ['some short string', 'another but now a longer string']
109
+
110
+
# lookup for multiple substrings
111
+
reader.search_multiple(
112
+
[
113
+
'short',
114
+
'longer',
115
+
],
116
+
)
117
+
>>> ['some short string', 'another but now a longer string']
0 commit comments