code: def search(self, pattern):
          
          try:
              return self.advanced_search(pattern)
          except Exception:
              return self.basic_search(pattern)
docs: Top level search method on entries.