class_docstr: A range query for NUMERIC fields. Takes advantage of tiered indexing
  to speed up large ranges by matching at a high resolution at the edges of
  the range and a low resolution in the middle.
  
  >>> # Match numbers from 10 to 5925 in the "number" field.
  >>> nr = NumericRange("number", 10, 5925)
class_docstr_tok: ["A","range","query","for","NUMERIC","fields",".","Takes","advantage","of","tiered","indexing","to","speed","up","large","ranges","by","matching","at","a","high","resolution","at","the","edges","of","the","range","and","a","low","resolution","in","the","middle",".",">",">",">","#","Match","numbers","from","10","to","5925","in","the","``","number","''","field",".",">",">",">","nr","=","NumericRange","(","``","number","''",",","10",",","5925",")"]
docstr: :param fieldname: The name of the field to search.
  :param start: Match terms equal to or greater than this number. This
      should be a number type, not a string.
  :param end: Match terms equal to or less than this number. This should
      be a number type, not a string.
  :param startexcl: If True, the range start is exclusive. If False, the
      range start is inclusive.
  :param endexcl: If True, the range end is exclusive. If False, the
      range end is inclusive.
  :param boost: Boost factor that should be applied to the raw score of
      results matched by this query.
  :param constantscore: If True, the compiled query returns a constant
      score (the value of the ``boost`` keyword argument) instead of
      actually scoring the matched terms. This gives a nice speed boost
      and won't affect the results in most cases since numeric ranges
      will almost always be used as a filter.
docstr_tok: [":","param","fieldname",":","The","name","of","the","field","to","search",".",":","param","start",":","Match","terms","equal","to","or","greater","than","this","number",".","This","should","be","a","number","type",",","not","a","string",".",":","param","end",":","Match","terms","equal","to","or","less","than","this","number",".","This","should","be","a","number","type",",","not","a","string",".",":","param","startexcl",":","If","True",",","the","range","start","is","exclusive",".","If","False",",","the","range","start","is","inclusive",".",":","param","endexcl",":","If","True",",","the","range","end","is","exclusive",".","If","False",",","the","range","end","is","inclusive",".",":","param","boost",":","Boost","factor","that","should","be","applied","to","the","raw","score","of","results","matched","by","this","query",".",":","param","constantscore",":","If","True",",","the","compiled","query","returns","a","constant","score","(","the","value","of","the","``","boost","``","keyword","argument",")","instead","of","actually","scoring","the","matched","terms",".","This","gives","a","nice","speed","boost","and","wo","n't","affect","the","results","in","most","cases","since","numeric","ranges","will","almost","always","be","used","as","a","filter","."]
code: def __init__(
      self,
      fieldname,
      start,
      end,
      startexcl=False,
      endexcl=False,
      boost=1.0,
      constantscore=True,
  ):
      """
      :param fieldname: The name of the field to search.
      :param start: Match terms equal to or greater than this number. This
          should be a number type, not a string.
      :param end: Match terms equal to or less than this number. This should
          be a number type, not a string.
      :param startexcl: If True, the range start is exclusive. If False, the
          range start is inclusive.
      :param endexcl: If True, the range end is exclusive. If False, the
          range end is inclusive.
      :param boost: Boost factor that should be applied to the raw score of
          results matched by this query.
      :param constantscore: If True, the compiled query returns a constant
          score (the value of the ``boost`` keyword argument) instead of
          actually scoring the matched terms. This gives a nice speed boost
          and won't affect the results in most cases since numeric ranges
          will almost always be used as a filter.
      """
  
      self.fieldname = fieldname
      self.start = start
      self.end = end
      self.startexcl = startexcl
      self.endexcl = endexcl
      self.boost = boost
      self.constantscore = constantscore
  
imports: from __future__ import division
  from whoosh.compat import b, u
  from whoosh.query import qcore, terms, compound, wrappers
  from whoosh.util.times import datetime_to_long
label_desc: Use image node_id 1 to create a new NumericRange object from inherited base classes: RangeMixin, qcore with example: obj = NumericRange(fieldname, start, end, startexcl, endexcl, boost, constantscore)