The How-To Guide For Boolean Searches

13 February 2020

Many people are familiar with the term Boolean, but very few could define what it means.

And to be fair, “Boolean” appears in many mathematical concepts (Boolean algebra, circuit, network, processor…), only few of which are relevant for those in the talent profession.

Where it really matters, though, is in database searches. Boolean operators are essential building blocks in sophisticated query logic, making searches more precise and relevant.

Here’s a short primer about the concept and how it applies in Pirical’ legal search engine Pirical Legal Professionals.

What’s in a name?

George Boole was a 19th century self-taught mathematician who created the foundations for modern computing.

It’s largely due to him that we have the concept of 0s and 1s. Every complex piece of information can be boiled down to a string of zeros and ones. Viewed through that lense, even the entire universe becomes, theoretically, manageable. We just don’t yet have the computing power to manage it all.

It was also Boole who developed what we today call “Boolean operators”: NOT, OR, and AND.

How NOT, OR, and AND make your life easy

NOT is hot

Any good search engine has Boolean operators integrated in their query logic. If you want to search for turkey and have the country, not the bird in mind, you simply google “turkey -bird”, (the minus being Google’s short form of NOT) and your results will be all about maps, holiday destinations and the latest Erdogan news.

By using the NOT operator in Google, you have limited your search to those results that do not contain any mention of the word bird.

(Moreover, Google is smart enough to exclude even those results which don’t contain the term “bird” but clearly are about the bird, e.g. a cooking recipe that doesn’t mention “bird”.)

The Golden OR

OR serves to broaden your search. If you were to search for results about the decade of flower power, you’d search “60s OR 1960s OR Sixties”.

AND’s the stANDard

AND, on the other hand, serves to narrow your search. If you wanted to search for the average retirement age in the UK, you’d search “UK AND retirement AND age”.

AND has been made obsolete by most search tools including Google, who have long understood that a string of multiple words most often implicitly assumes an AND logic (to stay with the previous example, you simply type “UK retirement age”.)

It’s important to know that while every good search engine and other database query system has some form of Boolean logic, not all are the same and it’s worth familiarising yourself with the Boolean operators a given database query system uses.

Which brings us to Pirical Legal Professionals.

Pirical Legal Professionals’ Boolean operators.

Pirical Legal Professionals is our search engine for legal talent. 350,000 lawyers in 130 countries working at over 1,000 firms are in our database, each with reams of data attached to them.

That kind of data volume requires plenty of sophistication in the algorithms it uses. Clients significantly benefit if they upgrade their searches with Boolean operators.

Our Boolean logic is as follows:

General rules

Boolean search will only work in the keyword field.

Also, Booleans in Pirical Legal Professionals require uppercase spelling. This is the only area where the case matters - otherwise, it is irrelevant whether you write m&a or M&A.

NOT searches

To exclude a particular term, type that term with an uppercase NOT immediately before it. E.g. corporate NOT M&A.

OR searches

To see results that include one or more terms in a list, separate the terms with an uppercase OR. E.g. insurance OR injury.

AND searches

AND is optional. For example, you can type finance AND projects, or you can just omit that operator.

PHRASE searches

To see only results that include a specific phrase you will need to use quotation marks. For example, you can type in “private client” which will only search for that exact phrase.

Multiple condition searches

Of course, you can combine booleans. You can do so by using parentheses.

To find Tax lawyers who do not work with private clients and don’t cover benefits, you search “Tax NOT (“private client” OR benefits)”.

Wildcard searches

A very useful operator (dare we say “life hack”) is the asterisk *, known as a wildcard. The asterisk represents one or several letters. For example, to find people who have words starting with “fin” in their profiles (“finance”, “financing”, “financial” etc.), simply type fin* in the keyword field.

Bringing it all together

Some lawyers may have “private clients”, and some “private client” in their profile. So you could optimise the query mentioned under the Multiple Condition Searches headline above (and using all Boolean operators at your disposal) by typing “Tax NOT (private client* OR benefits)”.

Ta-dah!

Subscribe to the latest data insights & blog updates



Fresh, original content for Law Firms and Legal Recruiters interested in data, diversity & inclusion, legal market insights, recruitment, and legal practice management.

Get updates via email
Lateral Partner demand in certain practices shifted across different segments of the AM Law 200
30 January 2025
Using publicly-available data from Pirical Legal Professionals (PLP), we've taken a look at the lateral Partner hires and headcount growth from 2024 to see which law firms and practices had the most interesting growth stories of the year.
Change in size of Partner promotions class
12 December 2024
As we near the end of the year, there have been a flurry of Partner promotion announcements from the top AM Law firms. Overall, the promotion class sizes have decreased for the second year in a row.
Pirical podcast - Seamless Lateral Partner Integration: Strategies for Success
4 December 2024
In our first ever podcast recording, we pick the brains of 3 thought leaders on the topic of Partner integration.
HSF Kramer office headcount
14 November 2024
Herbert Smith Freehills will gain a stronger foothold in the US if the merger with Kramer Levin goes ahead.
Top growing & declining practices by city
7 November 2024
We've taken a look at Partner headcount growth by practice between 2019-2024 to reveal which practices are on the up and which have been shrinking.
19 September 2024
The sheer size of the New York legal market relative to other US markets makes it rather unique. The city is by far the largest legal hub in the United States, with close to 10,000 Partners from AM Law 200 & Global 200 firms calling it home.
More posts
Share by: