Advanced queries allow you to refine your search results further by creating exceptions, removing automatic completion operations associated with particular field names, or both. This section provides instructions for constructing the most common types of advanced queries using Structured-Pills, Boolean operators, and advanced query syntax in Context Help mode, Default mode, and Expert mode.
Important
You cannot perform an advanced search using .analyzed in Context Sensitive Help mode.
Method 1: Using structured-pills and boolean operators
You can construct an advanced query using Structured-Pills and Boolean operators. For example, if you want to search the session data for all documents that contain a doc_values_type: of smtp AND a sourceIPV4address: of 172.16.112.149, enter the following query.
In Context Sensitive Help mode:
In Default mode:

Click inside the Query bar to display a list of field names. Select doc_values_type and click Enter.
Type
smtpimmediately following the colon and click Enter.Begin typing
OPERATORin the Query bar to display the Operator pill and click Enter to automatically complete the Operator pill.Select AND from the Operator drop-down menu and click Enter.
Click inside the Query Bar to display a list of field names. Select sourceIPV4address and click Enter.
Enter
172.16.112.149immediately following the colon and click Enter.Click the time picker and select start and end time.
Click the search icon in the Query Bar to run the search.
Method 2: Using querystring and boolean operators
The Querystring search syntax allows you to create your own Structured-Pill that ignores any automatic completion operations NDR associates with a particular field. For example, you can use Querystring to search the session data for all documents that contain any instance of Google OR Chrome in the httpUserAgent field AND match a sourceTransportPort of 80. The Boolean Operators section provides more information about using the default OR operator between Google and Chrome.
In Default mode: actually default mode

Type
querystringand click Enter.Enter
"httpUserAgent:Google Chrome"and click Enter.Select
ANDfrom the drop-down menu and click Enter.Click inside the Query Bar to display a list of field names. Select
sourceTransportPortand click Enter.Enter
80immediately following the filter colon and click Enter.Click the time picker and select the start and end time for your session search.
Click the search icon in the Query Bar to run your search.
In Default mode:
The Querystring search syntax is recognized by

Type
querystringand click Enter.Enter
"httpUserAgent:Google Chrome"in the Query Bar, and click Enter.Click inside the Query Bar to display a list of field names. Select the OPERATOR pill and click Enter to automatically complete the pill in the Query Bar.
SelectAND from the Operator drop-down menu and click Enter.
Click inside the Query Bar to display a list of field names. Select the sourceTransportPort Structured-Pill and click enter.
Enter
80immediately following the filter colon and click Enter.Click the time picker and select the start and end time for your session search.
Click the search icon in the Query Bar to run your search.
Method 2: Using .analyzed
The .analyzed query syntax searches the NDR index and returns documents that contain any character instance of the field term or value you entered following the fieldname. The .analyzed search syntax is not case-sensitive. When you apply .analyzed to a field filter, NDR automatically applies a lowercase rule to all indexed text in the document field.
For example, the steps below show you how to construct a query that searches the session data, analyzes the httpUserAgent field for all instances of Mozilla, and returns all documents matching this term AND an httpMethod of GET.
In Context Sensitive Help mode:
Enter
httpUserAgent.analyzed, ignoring the contextual suggestion,httpUserAgent.Enter
Mozilla.Enter
ANDfollowed byHTTPMETHOD:GETand click Enter.Click the time picker and select the time range for your session search.
Click the search icon in the Query Bar to run your search.
In Default mode:

Type
httpUserAgent.analyzed:immediately followed by theMozillain the Query Bar, and click Enter.Type
ANDfollowed byHTTPMETHOD:GETand click Enter. NDR separates the AND operator and the field term into separate Structured-Pills.Click the time picker and select the time range for your session search.
Click the search icon in the Query Bar to run your search.
In Expert mode:
Method 3: Using querystring and .analyzed
In this example, using Querystring and .analyzed in a query, instructs NDR to ignore any auto completion operations associated with the httpUserAgent filter, search the index, and return documents that contain any character instance of Mozilla in the httpUserAgent field AND an httpMethod of GET. Follow the steps below to construct a search query using Querystring and .analyzed:

Type
Querystring:httpUserAgent.analyzed:followed by theMozillain the Query Bar, and click Enter.Type the operator
ANDfollowed byhttpMethod:GET.Click the time picker and select the time range for your session search.
Click the search icon in the Query Bar to run your search.
Method 4: Using querystring, .analyzed, and double quotes
The field filter is only valid for the term it directly precedes. For example, the query described in Basic Field Searches: Method 2, Querystring:httpUserAgent: Google Chrome ignores any automatic completion operations associated with the httpUserAgent field. It also treats "Google" and "Chrome" as two separate terms. The term Google is applied to the httpUserAgent field and Chrome is searched as text.
To search for all instances of Google Chrome, use double quotes around the phrase. Follow the steps below to construct this query type:

Type
Querystring:httpUserAgent.analyzed:followed by"Google Chrome"in the Query Bar.Click Esc and Enter to accept the query as it is written. NDR accepts the query, applies the double quotes around Google Chrome, but removes the double quotes from the final the Structured-Pill.
Type
ANDand click Enter.Type
httpMethod:GETand click Enter.Click the time picker and select the time range for your session search.
Click the search icon in the Query Bar to run your search.