How to search effectively with searchcode server

Type any term you want to search for in the search box and press the enter key. Generally best results can be gained by searching for terms that you expect to be close to each other on the same line. Case is ignored for all searches with the exception of search operators.

The following search operators are supported.

Match where documents contain terms on both sides of the operator. E.G. test AND import
Match where documents contain terms on either side of the operator. E.G. test OR import
Match where documents do not contain terms on the right hand side of the operator. E.G. test NOT import
( )
Group terms. Allows creation of exclusive matches. E.G. (test OR import) AND other
Wildcard. Only applies at end of a query. E.G. test*

An example using all of the above would be (mkdir NOT sphinx*) OR (php AND print*) This will search for documents containing mkdir but not starting with sphinx or documents containing php and containing terms starting with print. Operators must be in upper case where show or they will be treated as part of the query itself. I.E. to match on documents containing and search for and lowercase.

Other characters are treated as part of the search itself. This means that a search for something such as i++; is not only a legal search it is likely to return results for most code bases.

If a search does not return the results you are expecting or no results at all consider rewriting the query. For example searching for Arrays.asList("a1", "a2", "b1", "c2", "c1") could be turned into a looser query by searching for Arrays.asList or Arrays asList. Another example would be EMAIL_ADDRESS_REGEX for email address regex.

Check out the suggested "Alternate Searches" which can appear below the number of matching results for any query. They generally will show looser match queries which can return more results and help you find what you are looking for.

To view the full file that is returned click on the name of the file, or click on any line to be taken to that line. Syntax highlighting is enabled for all files less than 1000 lines in length.

GIF Animation showing searchcode server search capabilities

Productivity through code search.

Try searchcode server for Free