   #    It's not necessary to submit path, if the search was prepared beforehand,
   #    with the prepareSearch() method
   # 
-  #  rescan: should the DOM be re-scanned, even if we already have a mapping for it?
-  # 
   # For the details about the returned data structure, see the documentation of the search() method.
-  searchRegex: (pattern, caseSensitive = false, path = null, rescan = false) ->
+  searchRegex: (pattern, caseSensitive = false, path = null) ->
     if not @rm then @rm = new window.DTM_RegexMatcher
     @rm.setCaseSensitive(caseSensitive)
-    @search(@rm, pattern, null, path, rescan)
+    @search @rm, pattern, null, path
 
   # Search for text using fuzzy text matching
   #

  # Prepare for searching the specified path
  # 
  # Returns the time (in ms) it took the scan the specified path
  prepareSearch: (path, rescan = false) ->
    t0 = @timestamp()    
    @mapper.scan path, rescan
    t1 = @timestamp()
    t1 - t0


  #    It's not necessary to submit path, if the search was prepared beforehand,
  #    with the prepareSearch() method
  # 
  # For the details about the returned data structure, see the documentation of the search() method.
  searchFuzzy: (pattern, pos, caseSensitive = false, matchDistance = 1000, matchThreshold = 0.5, path = null) ->
    if not @dmp? then @dmp = new window.DTM_DMPMatcher
    @dmp.setMatchDistance matchDistance
    @dmp.setMatchThreshold matchThreshold
    @dmp.setCaseSensitive caseSensitive
    @search @dmp, pattern, pos, path

  # ===== Private methods (never call from outside the module) =======

