Category Component 26.1
Category Component Help

# Exact Phrase and Proximity Searches

If you combine an exact phrase search for multiple phrases (in which you frame the individual phrases in quotation marks) with a proximity search, Content obeys the proximity rules while it processes the exact phrase search. To ensure that proximity operators tie to an entire phrase, enclose the phrases in brackets. For example:

    action=Query&Text=("Egyptian cats")+ NEAR2+("Phoenician sailors")

This query returns only documents in which a match of the phrase Egyptian cats is no further than two words away from a match of the phrase Phoenician sailors (after stemming and stopping).

    action=Query&Text=("Egyptian cats")+BEFORE+("Phoenician sailors")

This query returns only documents that match the phrase Egyptian cats and the phrase Phoenician sailors (after stemming and stopping). The phrase Egyptian cats must occur before the phrase Phoenician sailors.

Copyright 2025 Open Text
Version 26.1 | Last updated January 2026

Send documentation feedback

Close

Send documentation feedback

To send feedback using your default email client, open an email window.

Otherwise, send your feedback and the information below to MFI-swpdl.idoldocsfeedback@opentext.com.

We appreciate your feedback!

Product: Knowledge Discovery Category Component 26.1

Topic Title: Exact Phrase and Proximity Searches