Hello fahim khan,
You must first install this component by opening Server Manager, navigating to Add Roles and Features, and selecting the Windows Search Service under the Features hierarchy. Once installed and the server reboots, execute services.msc to verify the Windows Search service is running and set to Automatic, which allows the system to begin building the initial index catalog located at C:\ProgramData\Microsoft\Search\Data.
If you are specifically trying to search these server files from a remote client workstation via a mapped network drive, you must also include that UNC path or mapped drive into a local Windows Library on the client endpoint to force the client shell to read the server's index. Please reply with your exact Windows Server version and indicate if the query originates locally or across the network so I can provide specific Group Policy configurations if the standard index reconstruction does not immediately resolve your visibility issue.
If this architectural adjustment successfully restores your search functionality, please click "Accept Answer" so other administrators encountering this same indexing limitation can quickly locate the verified solution.
Tracy.