Multi-Part Search Expressions
About Multi-part Searches
Search expressions can include several parts. This topic explains how to combine search criteria in the main Search bar. (To combine search types in the Advanced Search, see "Before you Begin").
Notes:
-
If you use more than one connector (and, or, not, etc.), use parentheses to precisely indicate the search criteria. For example, annual and profit or deficit could mean (annual and profit) or deficit, or it could mean annual and (profit or deficit).
-
If you combine a field search with another search, use parentheses in the following format to clearly define the field search: (fieldname contains (content)).
Parentheses can similarly be used to help distinguish other search phrases within a multi-part expression. See examples in the table in the section titled "Multi-part Search Examples"
How Multi-part Search Expressions are Processed
Search operations are performed in sequence from left to right. For example, if you perform the following search, Eclipse will first find all documents created on the specified date, and then the documents in that set that contain either of the search terms indicated:
(Create Date contains (19811015)) and (silver or gold)
Multi-part Search Examples
The following examples will help you understand how you can construct multi-part search expressions. Another option is to use Advanced Search, which can help you organize your search criteria.
|
no. |
search expression / results |
|
1 |
(annual or profit) and deficit This search first creates a set of documents containing either annual OR profit (in any indexed field) and then reduces that subset to only those documents that ALSO contain the word deficit. |
|
2 |
annual or (profit and deficit) This search first creates a set of documents containing annual and then adds to that set any documents containing both profit AND deficit. |
|
3 |
(jones or (smith and hall)) and not (carpenter or blakely) This search first creates a set of documents containing jones and then adds to that set any documents containing both smith AND hall. It then removes from the set any records containing either carpenter OR blakely. |
|
4 |
jsmith@myco.com and (create date contains (20010101~~20011231)) This search finds documents containing the email address shown that also have a creation date ranging from January 1, 2001 to December 31, 2001. |
|
5 |
(//text contains (aggregate payments)) and (sent date contains (20130127)) This search finds documents where “aggregate payments” is in the documents’ text files that also have a Sent Date of 1/27/2013. |
Optimizing Searches
Some types of complex expressions using the W/ connector will produce ambiguous results and should not be used. The following are examples of ambiguous search requests:
(profit and deficit) w/10 (smith and jones)
(profit w/10 deficit) w/10 (smith and jones)
In general, at least one of the two expressions connected by W/ must be a single word or phrase or a group of words and phrases connected by OR. For example:
(profit and deficit) w/10 (smith or jones)
(profit and deficit) w/10 (john smith)
Troubleshooting Search Problems
If a search does not yield the results you expect,
consider the possibilities listed in this
table.