All Collections
Boolean search tips
Boolean search tips
Include and exclude terms with AND, OR, AND NOT or ONLY Boolean operators for tasks such as tag exclusion and keyword searches.
John OHara avatar
Written by John OHara
Updated over a week ago

Basic Boolean Searches

You can use Boolean operators AND, OR, AND NOT to include or exclude certain search conditions.

⚠️ Ensure your Boolean queries are capitalized, otherwise Logikcull will search for the actual text of the operator "and, or, and not," etc.

For example:

tags:Harry AND tags:Sally

Include all documents tagged with both Harry AND Sally

tags:Responsive AND NOT tags:Privileged

Include all "Responsive" tags and exclude (AND NOT) all "Privileged" tags

(bean* OR rice) AND NOT quinoa

Include all keywords starting with "Bean" (bean, beans, beanie, etc) OR "Rice", but exclude any documents that contain "quinoa"

Exclusion Searches

Sometimes you need to run an exclusion search, or search using a negative clause. You can do this easily by starting your search query with the Boolean operator NOT.

For example, let's say you need to exclude all emails from domain names or because they're irrelevant to your review. The search

document_type:Email AND NOT email_fields.from_domain:( OR

will result in excluding any emails where those domains are in the email from metadata.

Nested Boolean Searches

Searches run left-to-right, but you may also "nest" your search conditions in parentheses, so that searches within the parentheses are run first, followed by those outside the parentheses, from left-to-right.

For example, let's say you need to run a search for documents tagged "For Further Review" that are also tagged either "Hot" or "Responsive." The search

tags:"For Further Review" AND (tags:Hot OR tags:Responsive)
will result in only those documents tagged "For Further Review" that are also tagged either "Hot" or "Responsive:"

Without parentheses, the search

tags:"For Further Review" AND tags:Hot OR tags:Responsive

will return any document tagged with both "For Further Review" AND "Hot", OR any document tagged "Responsive," regardless of any other condition.

ONLY Searches

ℹ️ ONLY operator searches are available on native documents that are processed by Logikcull (File Uploads and Cloud Uploads).

Database Uploads with imported metadata are ineligible.

Searches for documents that match ONLY a given value. For example, a search for

ONLY"Joe Cull"

Will return document in which "Joe Cull" is the ONLY metadata in the "Email To" metadata field.

The fields in which an ONLY operator can be used as a modifier are:


  • email_fields.smtp_to


  • email_fields.smtp_cc

  • email_fields.bcc

  • email_fields.smtp_bcc


  • email_fields.recip_domains

  • email_fields.recipient_emails

  • email_recipients

💡 To search for a conversation ONLY between two parties, you can combine multiple fields, like this: AND ONLY ("elan rye" OR

Which will return emails between Corona Urn and Elan Rye in which Corona Urn is the sender and Elan Rye is the recipient in the "To" field.

⚠️ Important: if you're using the Advanced Search Builder to construct your search query, you'll need to pay close attention to the order of operations and add parentheses to the resulting search in the search bar as necessary.


Are there any limits to the number of Boolean operators that can be used in a search?

Yes, Logikcull has a limit of 1,024 Boolean operators per individual search (and a separate limit of 40,000 characters per search). You may opt to break a large search up into separate saved searches, then search on the combined saved searches, as a work-around to this limit.



Did this answer your question?