difference

Purpose

Finds documents that contain occurrences of the 1st argument which do not intersect with occurrences of the 2nd argument.

The function is alias for term1/term2.

Syntax

difference(term1, term2)

Arguments

Requires two arguments (terms).

Returned Value

Documents matching the query.

Examples

difference(a, phrase(a,b)) = a/phrase(a,b) matches a, a c, a b a but not a b.

difference(term(wordclass1), term(wordclass2)) = term(wordclass1)/term(wordclass2) matches documents that contain words present in wordclass1 but not in wordclass2.