Proximity operators
Proximity operators are operators you use to combine two or more search terms to match items based on their distance from each other using a distance parameter you specify. Nuix supports the following proximity operators:
W/n
PRE/n
NOT W/n
NOT PRE/n
Important: In the legal industry most proximity searching is often associated with a particular product. Proximity searching in Nuix works in the same way as industry- standard proximity searches but does not use a third-party tool. This produces slightly differing results when compared to other tools unless those indexes are built in the same way as Nuix.
W/n
A search combining two or more search terms using the W/n operator matches only items that are near each other in the maximum permissible number of terms specified by the parameter n. One term is matched within that distance of the other and is symmetrical as a search term.
This operator is not case sensitive, so a lowercase "w/n" in queries behaves the same way as the same operator in uppercase.
Much like the AND operator, you can use the W/n operator to combine most of the above search queries. However, you cannot use NOT. Complex nested Boolean queries are permitted but are unlikely to give meaningful results.
Query string |
Results |
Joe W/4 Bloggs |
Matches items containing "Joe" and "Bloggs" occurring within a maximum distance of 4 terms apart (a maximum of 3 terms can occur between the two). |
(John OR Johnny) W/2 Smith |
Matches items containing either "John" or "Johnny" occurring within a maximum distance of 2 words from "Smith". |
(John AND Mary) W/2 Smith |
Matches items containing both "John" and "Mary" occurring within a maximum distance of 2 words from "Smith". |
PRE/n
The PRE/n operator works similarly to the W/n operator with the difference being that the matches must occur in the order in which you specify them. This operator is not case sensitive, so a lowercase "pre/n" in queries behaves the same way as the same operator in uppercase.
Examples:
Query string |
Results |
Joe PRE/3 Bloggs |
Matches items containing "Joe" and "Bloggs", with "Bloggs" occurring within the three terms after "Joe". |
(John OR Johnny) PRE/2 Smith |
Matches items containing either "John" or "Johnny", with "Smith" occurring within the 2 words after matching either of the first terms. |
NOT W/n and NOT PRE/n
By adding NOT in front of W/n or PRE/n, you reverse the proximity rule.
This operator is not case sensitive, so a lowercase "not" in queries behaves the same way.
Along with other previously detailed restrictions for proximity queries, you cannot use NOT proximity queries with nested AND queries. Examples:
Query string |
Results |
"Acme Corporation" NOT W/3 Copyright |
Matches items containing any instances of "Acme Corporation" that are not within three terms of "Copyright". This differs from normal Boolean queries in that the same document can have instances of "Acme Corporation" that are both within and not within 3 terms of "Copyright". |
Acme NOT PRE/1 ( Corporation OR Inc) |
Matches items containing "Acme" but without "Corporation" or "Inc" as the next term. |