code: def _search_to_es_query(
      self,
      schema: Optional[Dict[str, Any]] = None,
      query: Optional[BackendRecordsQuery] = None,
      sort: Optional[SortConfig] = None,
  ):
      if not query:
          return filters.match_all()
  
      return self._to_es_query(query)
  
imports: import logging
  import re
  from enum import Enum
  from typing import Any, Dict, List, Optional, Union
  from argilla.server.daos.backend.query_helpers import filters
  from argilla.server.daos.backend.search.model import BackendDatasetsQuery, BackendQuery, BackendRecordsQuery, BaseDatasetsQuery, QueryRange, SortableField, SortConfig
label_desc: Use image node_id 3 for calling the EsQueryBuilder obj's underlying member method code with example usage: obj._search_to_es_query(schema, query, sort) and returns: self, filters