Task: Refine A Search

Sometimes a search will return more results than expected. The CodeSonar search refinement facility allows you to narrow down the results of a search by applying further search conditions.



Method

On the Search Results page showing the results you want to refine:

  1. Type your additional terms into the search text field alongside the terms from the previous search. Your additional terms can be plain strings for full-text search or search-language search strings.
  2. Click Search.
  3. If the results of the refined search are still not narrow enough, repeat the above steps with additional search terms.

Example

Search Refinement Example

Suppose Lindsay has a daily goal:

"Close out all the warnings connected with file main.c in project SecretProjX."

The first step is to find all the warnings:

The search returns 346 results: main.c is very large and has a lot of problems. In light of this, Lindsay amends the daily goal to:

"Close out all the Null Pointer Dereference warnings connected with file main.c in project SecretProjX."

These warnings can be found by refining the results of the previous search:

The search returns 12 results: there are 12 Null Pointer Dereference warnings in file main.c of project SecretProjX".

Note: The Visible Warnings setting can also be used to change the saved search that is applied to the Warning Search Results page.

Links

Related tasks

Using CodeSonar