In MAXQDA, you can search for information in your documents in a variety of ways. One method is to search for particular words or character strings with the lexical search function. You may be familiar with this search method from text-processing programs. The principle is basically the same in MAXQDA, with the advantage that you can search many documents simultaneously for the words. A lexical text search finds only those terms that actually appear in the text. Searching with theoretical concepts and subject categories, such as “Helper Syndrome” in a study of volunteers in social work, will naturally not provide any results.
By assigning codes to appropriate document segments, you be able to find segments that relate to a certain theme. This finding of coded segments, also known as retrieval, requires only that you have created codes and assigned them to those document segments. After you have assigned codes to the document segments, you will be able to call up all segments that were coded with the same code. MAXQDA offers various ways to do this retrieval, but it is all based on activation of documents and codes.
The following explanation applies not only to texts, but also to coded segments in images, PDF files, table documents, audio and video files.
The retrieval principle in MAXQDA is very simple:
Activating documents
First the documents: All documents and document groups are listed in the “Document System”. The starting point, then, is an inactivated document. The status of the document – whether activated or not – can be seen by its color. Inactivated documents are grey, and activated documents are red.
![An inactivated document An inactivated document](https://www.maxqda.com/de/wp/wp-content/uploads/Coding-Suche_01_DE_nicht-aktiviertes-Dokuement.png)
![An activated document An activated document](https://www.maxqda.com/de/wp/wp-content/uploads/Coding-Suche_02_DE_aktiviertes-Dokuement.png)
As soon as at least one document is activated in a document group, a red arrow will also appear in front of the document group symbol:
![](https://www.maxqda.com/de/wp/wp-content/uploads/11-CodingSuche_Aktivieren_3_Dokumentengruppe.png)
And how do you activate a document? There are several ways to activate documents:
1. Activation via the context menu
The first way to activate a document is with the context menu. Simply right-click on the document and select Activate.
You will know that the document is activated, because it will turn red.
In the same way, you can activate entire document groups or document sets. Right-click on the document group and select Activate all documents.
You can even activate all documents in your entire project at one time by right-clicking on the Documents icon at the top level of your “Document System” and selecting Activate all documents.
2. Activation with the Ctrl or cmd Key
A simple way to activate documents, similar to selecting files in Windows Explorer or Mac Finder, is to hold down the Ctrl key (Windows) or cmd key (Mac) and to click on the required documents with the left mouse key. An entire document group or all project documents can also be activated in this way.
3. Activation with the mouse
Alternatively, you can activate a document simply by clicking on they grey circle to the left of the document symbol, or on the number of coded segments, which is displayed at the end of the line.
Activating codes
Activating codes works in the same way as for documents. Either right-click on a code and click to activate or hold the Ctrl key (Windows) or cmd key (Mac) and click on the code you would like to activate. You can also simply click on the grey symbol to the left of the code, or on the code frequency, which is displayed at the end of the line.
![Activating a code via the context menu Activating a code via the context menu](https://www.maxqda.com/wp/wp-content/uploads/Search-coded-data_03_EN_activat-code-context-menu.png)
Non-activated codes are displayed in grey, activated codes in red.
The status bar at the bottom of the MAXQDA window gives you information about the number of activated documents, activated codes, and the number of document segments that are being called up based on those activations.
![Activation information in the status bar Activation information in the status bar](https://www.maxqda.com/wp/wp-content/uploads/Search-coded-data_04_EN_activation-info-status-bar.png)
Compiling coded segments in the "Retrieved Segments" window
When you activate a parent code, your settings will determine whether the subcodes are automatically activated with it. You can change this setting by right-clicking on a code and clicking on Activate codes together with subcodes. If a checkmark was showing next to that line, selecting it will remove this checkmark, and subcodes will not automatically be activated with the parent code. Your settings for that code will be saved until you change them again.
All of the document segments that were found based on your activations are called retrieved segments or coded segments and are shown in the “Retrieved Segments” window.
![Called up document segments (coded segments) based on activated documents and codes Called up document segments (coded segments) based on activated documents and codes](https://www.maxqda.com/wp/wp-content/uploads/Search-coded-data_05_EN_coded-segments-activated-documents.png)
Example
Let’s say that you wanted to know what certain interviewees (e.g. Joanna, Kim, and Vincent) said about other people in their lives. You would start by activating the appropriate documents in the “Document System:”
- Hold the Ctrl key
- Left-click on the document “Joanna”
- Left-click on the document “Kim”
- Left-click on the document “Vincent”
- Next, you will need to activate the appropriate code along with its subcodes. In this case, the code is called “People”.
- You can now see some basic information about your activations in the status bar. It shows that you have activated three documents and five codes (this includes the four subcodes of “People”). You can also see that 27 document segments were retrieved based on those activations:
![Activation information found in the status bar Activation information found in the status bar](https://www.maxqda.com/de/wp/wp-content/uploads/Coding-Suche_06_DE_Informationen-Statuszeile_Aktivierungszustand.png)
Activating by variables
Activating documents and codes can done manually, but also automatically depending on certain variable values. This type of activation is referred to in MAXQDA as Logical Activation or Activation via Document and Code Variables, and is described in detail here.
Activating by color
Documents and codes can be activated not only manually (by clicking them) and automatically (by document and code variables), but also by color. In both the "Document System" and "Code System" windows you will find the Activate by Color entry in the context menu that appears when you click on the top entry of the hierarchical "tree".
After clicking on this button, a dialog field appears with all the colors that have been used for documents/codes so far. You can then check the box next to the colors to be activated. The two radio buttons at the top also let you check or uncheck all of the colors with a single click.
![The colors representing codes or documents to be activated The colors representing codes or documents to be activated](https://www.maxqda.com/wp/wp-content/uploads/Search-coded-data_10_EN_activation-by-color.png)
Resetting activations
Cancelling the activation of documents or codes operates on the same principle as activation: either via the context menu or with the mouse (eventually using the Ctrl or cmd key.) When you want to start a new Coding Query, but already have documents and codes activated from a previous retrieval, the easiest way to proceed is to automatically deactivate all of those documents and codes.
In the Analysis tab, you will find a Reset activations button, which fulfills this function.
![Button to “Reset activations” Button to “Reset activations”](https://www.maxqda.com/wp/wp-content/uploads/Search-coded-data_07_EN_activation-reset.png)
If you want to reset activations for only the documents or only the codes, you can do so with the button available in the “Document System” or “Code System” toolbars.
![Button to “Reset activations” for all documents in the “Document System” Button to “Reset activations” for all documents in the “Document System”](https://www.maxqda.com/wp/wp-content/uploads/Search-coded-data_08_EN_activation-reset-document-system.png)
![Button to “Reset activations” for all codes in the “Code System” Button to “Reset activations” for all codes in the “Code System”](https://www.maxqda.com/wp/wp-content/uploads/Search-coded-data_09_EN_activation-reset-code-system.png)
It is also possible to deactivate all codes or documents by right-clicking on the Documents icon in the “Document System” or the Codes icon in the “Code System” and selecting Deactivate all documents or Deactivate all codes.