Share via


SharePoint Online - Why does IsDocument:1 contain .aspx pages?

Question

Monday, January 29, 2018 3:01 PM

I am using a Search filter to get all documents on a SharePoint site, however I have noticed that IsDocument:1 returns aspx pages?

This looks to be by design but I don't understand why?

All replies (3)

Monday, January 29, 2018 5:21 PM âś…Answered

The isdocument managed property really only checks that the item being searched for is a file, which ASPX pages are.  You should be able to add an and clause to filter out the aspx files using the filetypeproperty.  Try this query text:

{searchboxquery}( isdocument:1 and  -FileType:aspx)

Paul Stork SharePoint Server MVP
Owner/Principal Architect: Don't Pa..Panic Consulting
Blog: http://dontpapanic.com/blog
Twitter: Follow @pstork
Please remember to mark your question as 'answered' if this solves your problem.


Wednesday, January 31, 2018 1:46 AM

Hi,

Do you have any update about this issue?

If Paul's post helps you, you can mark it as answer to help other community members to find the information quickly.

Have a nice day!

 

Best Regards,

Carl Zhou

Please remember to mark the replies as answers if they helped. If you have feedback for TechNet Subscriber Support, contact [email protected].


Click here to learn more. Visit the dedicated forum to share, explore and talk to experts about Microsoft Teams.


Thursday, February 1, 2018 1:40 PM

Thank you for the replies, I will use that query text instead