# Query Results Window

The Query Results window displays search results from various sources (plugins). The window is useful for navigating to a resultant location or selecting some number of result locations for another operation that requires a selection. The information displayed in each column may differ depending on the search operation that populated the window. However, the window's capabilities are the same. The image below shows the results of a search. You will also see the Query Results window when you do a Go To for matching a wildcard entry.

> Each row of the table is associated with an address or location within the program. There may be multiple entries for the same address, depending on the type of search. For example, when searching text, a string may appear multiple times in the same pre-comment. So, you will see an entry for each in the Query Results window. The title bar shows the number of entries being displayed.

> The tool has an option for the maximum number of search results. The search will stop after this number has been exceeded. To see more search results, increase your search limit.

### Navigation

> As with most tables in Ghidra, you may change the location of the cursor within the tool by clicking on the various table cells. The location to which the cursor is moved depends upon which table cell is clicked. For example, clicking on the location column will move the cursor to the location where the match was found. Alternatively, clicking on a label in the label column will move the cursor to the corresponding label in the listing panel.

### Marker Margins

> When searching strings or memory, a yellow arrow marker is placed in the left hand marker margin at each location in the browser that a match was found. The location of each query result in the entire view is displayed as a yellow box in the right hand Navigation Margin. You can navigate to a query result by left-mouse-clicking on the yellow box in the Navigation margin. The Navigation margin provides a general overview of where in the program any query results were found.

### Make Selection

> A selection in the Listing can be created from the entries in the results table. The selection can also be used as input to another operation that uses the current selection, e.g., a follow-on search that is restricted to the results of the first search using the current selection.

> > To create a selection from all the result items,

> > 1. Click in the results table and press `Ctrl+A`.
> > 2. Click on the in the tool bar, or right mouse click and choose Make Selection.
> > 3. The current selection will be set to the address of each result item.

> > To create a selection from a subset of the items,

> > 1. Select the result items with the `Ctrl+left-mouse` or `Shift+left-mouse`.
> > 2. Press and hold the right mouse button over the results table.
> > 3. Click on the in the tool bar, or right mouse click and choose Make Selection.
> > 4. The current selection will be set to the address of all the highlighted items.

### Remove Items

> You can remove entries from the table via this action. Items are only removed from the table--no program data is changed. This can be useful when you wish to exclude results that are of no interest to you.

### Selection Navigation

> This action causes the Listing to navigate to the address represented by a row when that row is selected. Toggling this action on allows you to use the up and down arrow keys to change the selection in the table while also navigating to that address in the Listing. You may also use this action to trigger navigation when single-clicking a table row.

### Renaming Windows

> see Docking Windows - Renaming Windows

Related Topics:

> - Tool Options
> - Text Search
> - Go To