How can modify below search result sources so it only take documents and not folders and also not any other pages from document libraries

{searchTerms} path: https://sharepoint.com/Test/Test/sites/DocumentLibrary* IsDocument=True

1 Answer 1


You could try to use:

{searchTerms} path: https://sharepoint.com/Test/Test/sites/DocumentLibrary IsDocument=1

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.