If one of you kind souls could give me syntax for a KQL string that will exclude pages/URLs from results, I would be much obliged, as I am somewhat newbiish at this… When I do a keyword search SP is returning the documents tagged with the keyword as well as the pages containing them, I am trying to eliminate that behavior. Thanks in advance!!
A simple way to remove pages from search results is with: –FileExtension:aspx
This is something I wouldn’t recommend doing for all search results as it would remove all pages. Do you have a page or smaller search center that you are planning to build this logic? If there is a smaller area you want to return results for it would be easier to build a query to return only the results you want by using inclusion commands instead of exclusion.