question

KarenArul-2926 avatar image
0 Votes"
KarenArul-2926 asked KarenArul-2926 commented

Search rules with sp

I have a news site for public users and I need to configure search to only show pages and specific documents , not document library, lists, list items and all items. Aspx and other system pages... Etc

Please provide me the propsed list of search rules for anything should not be appearing in the search else pages and specific documents!

Thanks

office-sharepoint-server-administration
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

AllenXu-MSFT avatar image
0 Votes"
AllenXu-MSFT answered KarenArul-2926 commented

Hi @KarenArul-2926 ,

Go to site settings > Result Source > New Result Source > Scroll down to Query Transform section > Type in Query text the URL of you wanted pages and documents like below > Save.
169730-image.png

Back to Result Source page and set the result source created above as default.
169756-image.png


If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


image.png (5.3 KiB)
image.png (26.6 KiB)
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@KarenArul-2926 Have you tried Allen's suggestion? If you have any unclear, please feel free to reply.

0 Votes 0 ·

I know how I can do that, I need the list of all system urls that should be excluded, can you help me to do that!

0 Votes 0 ·