0

I need to get documents from specific folder from siteassets and .aspx files from Pages library. I tried:

$quertText="contentclass:STS_ListItem_DocumentLibrary" this query retrieving all documents from the documentlibrary and also from siteassets.But how to get documents from specific folder from site assets And same for pages library from specific folder i should get .aspx files .How can i acheive this?

1 Answer 1

0

You can use the the Path parameter.

path:"https://siteURL.com/pages/foldername/*" 

This previously asked question has a good break down on the various usages.

1
  • but im doing Search for entire tenant .Is it possible to query for specific folder in specific library without passing specifically folder path? I know this maybe a wrong question..but im new to Search and confirming is there any other way in Search API without specifying exact folder url. Kindly clarify.
    – Swetha
    Commented Aug 2, 2018 at 11:07

Your Answer

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

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