include
Purpose
Finds documents that contain occurrences of the first argument which are also included in occurrences of the second argument.
Arguments
The function takes two required arguments.
The function also supports the optional named parameter match which takes one of the following values:
Value |
Explanation |
first |
the first argument entirely (default value) |
second |
the second argument entirely |
union |
arguments’ union |
difference |
arguments’ symmetric difference, i.e. items which are in either of the sets, but not in their intersection |
Moreover, the function supports the optional named parameter diff that sets a limitation of the possible difference between arguments in words. Thus, diff is a difference between the arguments' intersection and the quantity of words they have in common. It is possible to indicate two diff parameters defining upper and lower bound of the allowed difference.
In order to limit a search, one can use the operators :=, :>, :>=, :<, :<=.