Commits

Matt Chaput committed f1460c5

Fixed copy/paste error.

Comments (0)

Files changed (1)

src/whoosh/sorting.py

         startdate = datetime(1920, 0, 0)
         enddate = datetime.now()
         gap = relativedelta(years=5)
-        bdays = RangeFacet("birthday", startdate, enddate, gap)
+        bdays = DateRangeFacet("birthday", startdate, enddate, gap)
         results = searcher.search(myquery, groupedby=bdays)
         
     The ranges/buckets are always **inclusive** at the start and **exclusive**