The content in this help topic pertains to SuiteScript 2.0.

Object Description

Encapsulates a search filter used in a search. Use the properties for the Filter object to get and set the filter properties.

You create a search filter object with search.createFilter(options) and add it to a search.Search object that you create with search.create(options) or load with search.load(options).


NetSuite uses an implicit AND operator with search filters, as opposed to filter expressions which explicitly use either AND and OR operators.

Use the following guidelines with the Filter object:

  • To search for a "none of null" value, meaning do not show results without a value for the specified field, use a value of @NONE@ in the Filter.formula property.

  • To search on checkbox fields, use the IS operator with a value of T or F to search for checked or unchecked fields, respectively.

For a complete list of this object’s methods and properties, see Filter Object Members.

Supported Script Types

Client and server scripts

For more information, see SuiteScript 2.x Script Types.


N/search Module




The following code sample shows the syntax for this member. It is not a functional example. For a complete script example, see N/search Module Script Samples.

          //Add additional code 
var mySearchFilter = search.createFilter({
    name: 'entity',
    operator: search.Operator.ISEMPTY,
//Add additional code 


Related Topics

N/search Module
SuiteScript 2.x Modules
SuiteScript 2.x

General Notices