// CQLSearchClause
var CQLSearchClause = function (field, fielduri, relation, relationuri,
// CQLSearchClause
var CQLSearchClause = function (field, fielduri, relation, relationuri,
this.field = field;
this.fielduri = fielduri;
this.relation = relation;
this.relationuri = relationuri;
this.modifiers = modifiers;
this.term = term;
this.field = field;
this.fielduri = fielduri;
this.relation = relation;
this.relationuri = relationuri;
this.modifiers = modifiers;
this.term = term;
s+= ', "relation": "'+this._mapRelation(this.relation)+'"';
for (var i = 0; i < this.modifiers.length; i++) {
//since modifiers are mapped to keys, ignore the reserved ones
s+= ', "relation": "'+this._mapRelation(this.relation)+'"';
for (var i = 0; i < this.modifiers.length; i++) {
//since modifiers are mapped to keys, ignore the reserved ones
if (!query)
throw new Error("The query to be parsed cannot be empty");
if (typeof query == 'string')
query = JSON.parse(query);
if (!query)
throw new Error("The query to be parsed cannot be empty");
if (typeof query == 'string')
query = JSON.parse(query);
- ? node._remapRelation(fq.relation) :
- //HACK: if the field is set, assume '=' rather than scr
- (fq.hasOwnProperty('field') ? '=' : 'scr');
+ ? node._remapRelation(fq.relation) : this.scr;