phrase
Purpose
Finds documents that contain arguments adjacent to each other in a specified order within a sentence.
Arguments
The function accepts several arguments:
-
The first optional argument distance is used to specify maximum distance (in tokens) between adjacent arguments. By default, the argument value is set to 1. If the argument value is set to 0, punctuation between arguments is not allowed.
-
The other arguments define the terms to search for.
The function also supports optional named parameters:
-
allow_punct:=yes/no allows or prohibits punctuation between arguments (set to "yes" by default).
-
allow_space:=yes/no allows or prohibits spaces between arguments (set to "yes" by default).
-
match:=range matches text range starting from the first found term and ending with the last found term.
-
match:=inverse matches text range starting from the first found term and ending with the last found term except for the specified arguments.