def get_search_location():
 try:
  return file_io.read(constants.SEARCH_FILE_LOC).rstrip()
 except IOError:
  logging.warning('Search role is not configured.')
  return ''

def get_search_location ( ) : try : return file_io . read ( constants . SEARCH_FILE_LOC ) . rstrip ( ) except IOError : logging . warning ( 'Search role is not configured.' ) return ''
returns the ip and port of where the search service is running .