Global.helma.Search.BooleanQuery.prototype.addQuery (q, clause)
Adds an additional query clause to this query.

  • Parameter {helma.Search.Query}:
    q The query to add
  • Parameter {String}:
    clause Boolean clause ("or", "not", or "and", default is "and")
Sourcecode in /home/hannes/helma/modules/helma/Search.js:
888:   helma.Search.BooleanQuery.prototype.addQuery = function(q, clause) {
889:       switch (clause) {
890:           case "or":
891:               this.getQuery().add(q.getQuery(), false, false);
892:               break;
893:           case "not":
894:               this.getQuery().add(q.getQuery(), false, true);
895:               break;
896:           default:
897:              this.getQuery().add(q.getQuery(), true, false);
898:      }
899:      return;
900:  }