lib/query-builder.js
function notIn() {
  var args = mlutil.asArray.apply(null, arguments);
  switch(args.length) {
  case 0:
    throw new Error('missing positive and negative queries');
  case 1:
    throw new Error('has positive query but missing negative query: '+mlutil.identify(args[0], true));
  case 2:
    return new NotInDef(new PositiveNegativeDef(args[0], args[1]));
  default:
    throw new Error('too many arguments for notIn() query: '+args.length);
  }
}
function notIn() {
  var args = mlutil.asArray.apply(null, arguments);
  switch(args.length) {
  case 0:
    throw new Error('missing positive and negative queries');
  case 1:
    throw new Error('has positive query but missing negative query: '+mlutil.identify(args[0], true));
  case 2:
    return new NotInDef(new PositiveNegativeDef(args[0], args[1]));
  default:
    throw new Error('too many arguments for notIn() query: '+args.length);
  }
}
function notIn ( ) { var args = mlutil . asArray . apply ( null , arguments ) ; switch ( args . length ) { case 0 : throw new Error ( 'missing positive and negative queries' ) ; case 1 : throw new Error ( 'has positive query but missing negative query: ' + mlutil . identify ( args [ 0 ] , true ) ) ; case 2 : return new NotInDef ( new PositiveNegativeDef ( args [ 0 ] , args [ 1 ] ) ) ; default : throw new Error ( 'too many arguments for notIn() query: ' + args . length ) ; } }
Builds a query where the matching content qualifies for the positive query
and does not qualify for the negative query. Positions must be enabled for indexes.
@method
@since 1.0
@memberof queryBuilder#
@param {queryBuilder.Query} positiveQuery - a query that must match
the content
@param {queryBuilder.Query} negativeQuery - a query that must not match
the same content
@returns {queryBuilder.Query} a composable query
Builds a query where the matching content qualifies for the positive query and does not qualify for the negative query . Positions must be enabled for indexes .