search.Operator

Note:

JavaScript does not include an enumeration type. The SuiteScript 2.x documentation uses the term enumeration (or enum) to describe a plain JavaScript object with a flat, map-like structure. In this object, each key points to a read-only string value.

Enum Description

Holds the values for search operators to use with the search.Filter.

See SuiteScript 2.x Search Operators for more information about the field types supported for each search operator type.

Supported Script Types

Client and server scripts

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

Module

N/search Module

Since

2015.2

Values

  • AFTER

  • ALLOF

  • ANY

  • ANYOF

  • BEFORE

  • BETWEEN

  • CONTAINS

  • DOESNOTCONTAIN

  • DOESNOTSTARTWITH

  • EQUALTO

  • GREATERTHAN

  • GREATERTHANOREQUALTO

  • HASKEYWORDS

  • IS

  • ISEMPTY

  • ISNOT

  • ISNOTEMPTY

  • LESSTHAN

  • LESSTHANOREQUALTO

  • NONEOF

  • NOTAFTER

  • NOTALLOF

  • NOTBEFORE

  • NOTBETWEEN

  • NOTEQUALTO

  • NOTGREATERTHAN

  • NOTGREATERTHANOREQUALTO

  • NOTLESSTHAN

  • NOTLESSTHANOREQUALTO

  • NOTON

  • NOTONORAFTER

  • NOTONORBEFORE

  • NOTWITHIN

  • ON

  • ONORAFTER

  • ONORBEFORE

  • STARTSWITH

  • WITHIN

Syntax

Important:

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

General Notices