pattern
Purpose
Matches documents containing sequences of arguments in specified order within a sentence, excluding stop-words.
Arguments
-
The first optional argument distance is used to set the maximum allowed difference between the arguments of the sequence. Its default value is 1.
-
The other arguments define the terms to search for. The function accepts words and phrases in any form, as well as other word or sequence search functions, as arguments.
The function also supports the following optional named parameters:
-
allow_punct:=yes/no regulates whether punctuation marks are allowed within the sequence (set to "yes" by default).
-
allow_space:=yes/no regulates whether spaces are allowed within the sequence (set to "yes" by default).
-
match:=range matches text range from the first found term to the last found term.