Can you please explain how the layered navigation filter query search the records from the database

I want know how the layered navigation attribute filter search the records from the databse ? Is there any other module used for layered navigation results except magento-catalog ? Or Module-catalog-search is also used for the query to get the product collection ?