I have created a custom Results Source that looks at a specific Document Library within my SharePoint site and a search box/results page to allow it to be searched.
I am having an issue though, as the search results only return the folders in which a search term is found, rather than the individual files, and I can't figure out why.
I have tried setting
IsDocument:1 and using the
ListItem class but to no avail. Has anyone got any other ideas what I can try?
The Document Library has been indexed and is available for searching.