File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -221,6 +221,22 @@ def stralgo(
221
221
** kwargs ,
222
222
):
223
223
"""
224
+ Implements complex algorithms that operate on strings.
225
+ Right now the only algorithm implemented is the LCS algorithm
226
+ (longest common substring). However new algorithms could be
227
+ implemented in the future.
228
+
229
+ ``algo`` Right now must be LCS
230
+ ``value1`` and ``value2`` Can be two strings or two keys
231
+ ``specific_argument`` Specifying if the arguments to the algorithm
232
+ will be keys or strings. strings is the default.
233
+ ``len`` Returns just the len of the match.
234
+ ``idx`` Returns the match positions in each string.
235
+ ``minmatchlen`` Restrict the list of matches to the ones of a given
236
+ minimal length. Can be provided only when ``idx`` set to True.
237
+ ``withmatchlen`` Returns the matches with the len of the match.
238
+ Can be provided only when ``idx`` set to True.
239
+
224
240
For more information check https://redis.io/commands/stralgo
225
241
"""
226
242
target_nodes = kwargs .pop ("target_nodes" , None )
You can’t perform that action at this time.
0 commit comments