support external tables in search