How to search data in all tables from my database? I need to create some sort of search like is on Github where after entering the phrase into the search engine, it looks for us both repositories, issues and users, I need to do something like this but with searching in entities like: User, Order and Projects,
I'm using TypeORM and simple search query looks like below:
const data = await this.conn
.getRepository(Order)
.createQueryBuilder('order')
.where('order.name = :name ', { name : name })
.leftJoin('order.author', 'author')
.orderBy('order.lastUpdate', 'DESC');
but how to search not only in Order entity but also in other tables like User and Projects? How the biggest company search engine works?