Code Search Examples

Code Insight 6.14.2 SP2

The following table lists code search examples.

Code Search Examples

Type

Search

Finds Files...

Search terms

do it right

Containing terms “do”, “it” and “right” anywhere in the file contents. The default conjunction operator is AND if no operator is specified.

Search phrase

"do it right"

Containing phrase “do it right” in the file contents.

"jonny@revenera.com"

Containing email phrase “jonny@revenera.com” in the file contents.

file name

fname:stack.h

That are named “stack.h”.

file path

fpath:/home/palamida/ePortal- 1.3/* [Linux]

fpath:c:/palamida/ePortal-1.3/* [Windows]

That are located in the ePortal-1.3 directory or below.

?

te?t

Containing “test” or “text” in the file contents.

*

test*

Containing “test”, “testing” or “tested” in the file contents.

AND

"jakarta apache" AND "Apache Lucene"

Containing both “jakarta apache” and “Apache Lucene” in the file contents.

OR

"jakarta apache" OR "Apache Lucene"

Containing either “jakarta apache” or “Apache Lucene” in the file contents.

NOT

"zlib compression library" NOT "zlibc Compressing File-I/O Library"?

Containing “zlib compression library” but not “zlibc Compressing File-I/O Library” in the file contents.

grouping

("Log4j" OR "Log4j 2") AND website

Containing “Log4j”, “Log4j 2”, or both in addition to “website” in the file contents.

compounding

fname:stack.h ("GPL" OR "General Public")

That are named “stack.h” and have “GPL” or “General Public” in the file contents.

Additional Information

The default conjunction operator is AND. If is no operator is specified between two terms, the AND operator applies.
Searches are not case sensitive (including conjunction operators).
You may use an asterisk (*) as the first character of a search.
See Lucene Query Parser Syntax for advanced options.