   # Nodes is the list of matching nodes, with details about the matches.
   # 
   # If no match is found, null is returned.  # 
-  search: (matcher, pattern, pos, path = null, rescan = false) ->
+  search: (matcher, pattern, pos, path = null) ->
     # Prepare and check the pattern 
     unless pattern? then throw new Error "Can't search for null pattern!"
     pattern = pattern.trim()

class window.DomTextMatcher

  # ===== Public methods =======

  # Consider only the sub-tree beginning with the given node.
  # 

  #    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.
  searchExact: (pattern, distinct = true, caseSensitive = false, path = null) ->
    if not @pm then @pm = new window.DTM_ExactMatcher
    @pm.setDistinct(distinct)
    @pm.setCaseSensitive(caseSensitive)
    @search @pm, pattern, null, path

  # Search for text using regular expressions
  #
