Global.helma.Search.RangeQuery (field, from, to, inclusive)
Constructs a new RangeQuery instance.

  • Parameter {String}:
    field The name of the field
  • Parameter {String}:
    from The minimum value to match (can be null)
  • Parameter {String}:
    to The maximum value to match (can be null)
  • Parameter {Boolean}:
    inclusive If true the given min/max values are included
  • Returns
    A newly created RangeQuery instance
Sourcecode in /home/hannes/helma/modules/helma/Search.js:
943:   helma.Search.RangeQuery = function(field, from, to, inclusive) {
944:       if (!field)
945:           throw("Missing field name in RangeQuery()");
946:       if (arguments.length < 4)
947:           inclusive = true;
948:       var t1 = from ? new Packages.org.apache.lucene.index.Term(field, from) : null;
949:       var t2 = to ? new Packages.org.apache.lucene.index.Term(field, to) : null;
950:       this.query = new Packages.org.apache.lucene.search.RangeQuery(t1, t2, inclusive);
951:       return this;
952:  }