code: def Search(self, text, wholewords=0, titleonly=0):
          '''Performs full-text search on the archive.
          The first parameter is the word to look for, the second
          indicates if the search should be for whole words only, and
          the third parameter indicates if the search should be
          restricted to page titles.
          This method will return a tuple, the first item
          indicating if the search results were partial, and the second
          item being a dictionary containing the results.'''
          if text and text != '' and self.file:
              return extra.search(self.file, text, wholewords,
                                  titleonly)
          else:
              return Nonf Search(self, text, wholewords=0, titleonly=0):
          '''Performs full-text search on the archive.
          The first parameter is the word to look for, the second
          indicates if the search should be for whole words only, and
          the third parameter indicates if the search should be
          restricted to page titles.
          This method will return a tuple, the first item
          indicating if the search results were partial, and the second
          item being a dictionary containing the results.'''
          if text and text != '' and self.file:
              return extra.search(self.file, text, wholewords,
                                  titleonly)
          else:
              return None
docs: Performs full-text search on the archive.
          The first parameter is the word to look for, the second
          indicates if the search should be for whole words only, and
          the third parameter indicates if the search should be
          restricted to page titles.
          This method will return a tuple, the first item
          indicating if the search results were partial, and the second
          item being a dictionary containing the results.