class_docstr: Matches documents containing any terms in a given range.
  
  >>> # Match documents where the indexed "id" field is greater than or equal
  >>> # to 'apple' and less than or equal to 'pear'.
  >>> TermRange("id", u"apple", u"pear")
class_docstr_tok: ["Matches","documents","containing","any","terms","in","a","given","range",".",">",">",">","#","Match","documents","where","the","indexed","``","id","''","field","is","greater","than","or","equal",">",">",">","#","to","'apple","'","and","less","than","or","equal","to","'pear","'",".",">",">",">","TermRange","(","``","id","''",",","u","''","apple","''",",","u","''","pear","''",")"]
docstr: :param fieldname: The name of the field to search.
  :param start: Match terms equal to or greater than this.
  :param end: Match terms equal to or less than this.
  :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.
docstr_tok: [":","param","fieldname",":","The","name","of","the","field","to","search",".",":","param","start",":","Match","terms","equal","to","or","greater","than","this",".",":","param","end",":","Match","terms","equal","to","or","less","than","this",".",":","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","."]
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.
      :param end: Match terms equal to or less than this.
      :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.
      """
  
      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 TermRange object from inherited base classes: RangeMixin, terms with example: obj = TermRange(fieldname, start, end, startexcl, endexcl, boost, constantscore)