lib/query-builder.js
function pathIndex() {
  var args = mlutil.asArray.apply(null, arguments);
  switch(args.length) {
  case 0:
    throw new Error('missing path for path index identifier');
  case 1:
    return new PathIndexDef(new PathDef(args[0]));
  case 2:
    return new PathIndexDef(new PathDef(args[0], args[1]));
  default:
    throw new Error('too many arguments for path index identifier: '+args.length);
  }
}
function pathIndex() {
  var args = mlutil.asArray.apply(null, arguments);
  switch(args.length) {
  case 0:
    throw new Error('missing path for path index identifier');
  case 1:
    return new PathIndexDef(new PathDef(args[0]));
  case 2:
    return new PathIndexDef(new PathDef(args[0], args[1]));
  default:
    throw new Error('too many arguments for path index identifier: '+args.length);
  }
}
function pathIndex ( ) { var args = mlutil . asArray . apply ( null , arguments ) ; switch ( args . length ) { case 0 : throw new Error ( 'missing path for path index identifier' ) ; case 1 : return new PathIndexDef ( new PathDef ( args [ 0 ] ) ) ; case 2 : return new PathIndexDef ( new PathDef ( args [ 0 ] , args [ 1 ] ) ) ; default : throw new Error ( 'too many arguments for path index identifier: ' + args . length ) ; } }
Specifies a path configured as an index over JSON or XML documents on the server.
@method
@since 1.0
@memberof queryBuilder#
@param {string} pathExpression - the indexed path
@param {object} namespaces - bindings between the prefixes in the path and
namespace URIs
@returns {queryBuilder.IndexedName} an indexed name for specifying a query
Specifies a path configured as an index over JSON or XML documents on the server .