Hello! Welcome back to our course on applying your legal framework in a professional setting.
In our last lesson, we focused on where to conduct legal research, identifying the key databases and official portals, with a special emphasis on Moroccan resources like the Adala portal. You learned to distinguish between primary and secondary sources and how to select the right database for a specific task.
Today, we move from the "where" to the "how." Simply typing a few keywords into a legal database, like you would on Google, is often inefficient and can miss crucial documents. To perform research like a professional, you need to give the database precise instructions. This lesson is dedicated to that skill. By the end of our session, you will be able to construct effective search queries using Boolean operators and legal terminology. Mastering this will make your research faster, more accurate, and far more valuable to your supervising attorney.
The Foundation: Boolean Operators
At the heart of all advanced searching are three simple words: AND, OR, and NOT. These are known as Boolean operators, and they allow you to combine your keywords to either narrow or broaden your search results.
Let's watch a short video that provides a clear introduction to these fundamental concepts.
This video, 'Boolean Operators' from libncsu, clearly explains the function of AND, OR, and NOT, and introduces the important practice of using parentheses to group terms.
Please watch the video from the beginning until 02:19. Pay close attention to the visual examples of how each operator affects the search results.
To recap and place this in a legal context:
-
AND: Narrows your search. It tells the database that all your specified terms must appear in the results.
- Example:
contrat AND "force majeure"will only find documents that mention both the word "contract" and the exact phrase "force majeure".
- Example:
-
OR: Broadens your search. It's perfect for synonyms or related concepts, telling the database that any of your specified terms can be present.
- Example:
avocat OR conseilwill find documents that contain the word "avocat," the word "conseil," or both.
- Example:
-
NOT: Excludes terms, narrowing your search. Use this with caution, as you might accidentally filter out relevant documents.
- Example:
responsabilité NOT pénalewould find documents about liability but exclude those that also mention criminal liability.
- Example:
A crucial point from the video is the use of parentheses (). They allow you to group your OR statements so the database processes them correctly. For example: (voiture OR automobile) AND accident. This finds documents about accidents involving either cars or automobiles. Without parentheses, the database might get confused.
Test your understanding!
A partner asks you to find court decisions related to the termination of a lease for either a commercial or residential property. Which of the following search queries is the best-constructed to find this information?
résiliation AND bail commercial AND bail d'habitationrésiliation AND (bail commercial OR bail d'habitation)résiliation OR bail commercial OR bail d'habitation
Show answer
Option 2 is the best choice: résiliation AND (bail commercial OR bail d'habitation)
- It correctly uses
ANDto ensure the core concept of "termination" (résiliation) is in every result. - It uses
ORwithin parentheses to find documents discussing either commercial leases or residential leases, effectively capturing both scenarios the partner asked for. - Option 1 is too narrow; it would only find documents that discuss termination, commercial leases, AND residential leases all together in the same document.
- Option 3 is too broad; it would return any document that mentions termination, any document that mentions commercial leases, and any document that mentions residential leases, leading to many irrelevant results.
Advanced Tools: Terms and Connectors for Legal Precision
While basic Boolean operators are a great start, professional legal databases like LexisNexis, Westlaw, and even the advanced search functions of government portals offer more powerful tools. This method is often called "Terms and Connectors" searching. It gives you much more control over your results than a "natural language" or Google-style search.
To learn about these advanced techniques, we'll consult a guide from Stanford Law School's library.
Terms & Connectors Searching - Case Finding and Advanced ...
This guide, 'Terms & Connectors Searching', explains the difference between basic and professional searching and walks through the process of building a sophisticated query.
Please read the first two main sections: 'Terms & Connectors vs. Natural Language' and 'Building Your Search'. Focus on the techniques used in Step Two and Step Three.
As you've just read, we can add several powerful tools to our toolkit:
-
Phrase Searching
"": Use quotation marks to search for an exact phrase. This is essential for legal terms of art.- Example:
"Dahir des Obligations et des Contrats"will find that exact title, not documents that happen to contain the words "dahir" and "contrats" separately.
- Example:
-
Root Expander
!: This is one of the most useful tools. Placing an exclamation mark at the end of a word's root finds all variations of that word.- Example:
licenciement!will findlicenciement,licenciements,licencié, etc. This saves you from having to type(licenciement OR licenciements OR licencié).
- Example:
-
Proximity Connectors
/n,/s,/p: These are more precise thanAND. They require your terms to appear within a certain distance of each other. The exact syntax can vary, but the concepts are universal.- /n or /
number: Within 'n' words of each other.responsabilité /5 fautefinds documents where "responsabilité" and "faute" are within 5 words of each other. - /s: In the same sentence.
rupture /s contratis more likely to find a discussion about the "rupture of a contract" thanrupture AND contrat. - /p: In the same paragraph.
dommage /p évaluationis useful for finding discussions where the evaluation of damages is mentioned in the same paragraph.
- /n or /
This table provides a great summary of these connectors.

The Final Piece: Order of Processing
When you build a complex search string, the database doesn't just read it from left to right. It processes the connectors in a specific, hierarchical order. Understanding this logic is the key to avoiding unexpected and incorrect results.
Terms and Connectors Searching - Basic Legal Research
We will now read a guide from the NIU College of Law Library that clearly explains this hierarchy.
Please read the sections 'Order of Processing: How Westlaw & Lexis 'Read' Your Search' and 'Changing the Order of Processing with Parentheses'. Focus on the numbered list showing the processing order.
The key takeaway is that databases have a default processing order (e.g., OR is usually processed before /p, which is processed before AND). While you can learn this order, the most practical and reliable strategy is to use parentheses () to control the logic yourself.
Think of it like an instruction to the database: "Process everything inside these parentheses first as a single unit."
Let's look at an example. Imagine you are researching corporate director liability for fraud or negligence.
-
Incorrect Search:
directeur AND responsabilité /p fraude OR négligence- Because
ORis often processed first, the database might interpret this as(fraude OR négligence)anddirecteur AND responsabilité /p [that result]. This is not what you want.
- Because
-
Correct Search:
(directeur AND responsabilité) /p (fraude OR négligence)- Here, you are giving clear instructions:
- First, find documents that contain both "directeur" AND "responsabilité".
- Separately, find documents that contain either "fraude" OR "négligence".
- Finally, show me only the results where the concepts from group 1 appear in the same paragraph (
/p) as the concepts from group 2.
- Here, you are giving clear instructions:
This level of precision is the difference between a frustrating hour of scrolling through irrelevant results and finding the exact case you need in minutes.
Conclusion
Fantastic work today. You've moved beyond simple keyword searching and learned the fundamental grammar of professional legal research. This is a skill that will serve you every single day in your role as a legal assistant.
Key Takeaways:
- Start with the basic Boolean operators: AND (narrows), OR (broadens for synonyms), and NOT (excludes).
- For legal precision, use "Terms and Connectors" like phrase searching
"", the root expander!, and proximity connectors (/s,/p,/n). - Databases process searches in a specific order. The most important skill is to use parentheses
()to group your concepts and force the database to follow the logic you intend.
Preview of the Next Lesson:
You now know where to search and how to build a powerful search query. In the next lesson, we will put these skills into practice to achieve a core research task: locating relevant statutes and codes applicable to a given legal issue. We will apply what you've learned today to find specific laws in databases like the Adala portal and LexisNexis.