We have created a folder structure in Document library. Folder 1 \ SubFolder \ Documents. Now we have created a view under Folder1, where directly Documents are shown without SubFolders(Show Documents without Folder property of View). now whenever I search for some document Name ex. TestSearch.pdf, it gives me correct document but is showing me Folder also which is containing this document. I am searching through 'Find a File' inline search of SharePoint 2013. I can not restrict search service application to exclude folders from search results, as it will affect my main site Search also. Please suggest if anyone has any idea to do achieve this.
Edit the page of the list you are talking about. Add the searchbox and search result webpart above or below that list. Modify the search query of the search result webpart which will show you only the documents in that list. From this point you have the OOTB list and your own customized search functionality on the same page.