Can I create a search ar within a Sharepoint Page (not site) that only applies specifically to the content linked in that page?

Jenna Teeters 1 Reputation point
2021-11-15T14:22:06.92+00:00

We've created a Sharepoint page, and I was asked if we could just search the content that was linked to that page, rather than the whole site. The only functionality I can find in online documentation is how to customize search for the whole site. Are there any ways to include a search bar within a page to only search the content linked there?

SharePoint Server
SharePoint Server
A family of Microsoft on-premises document management and storage systems.
2,220 questions
SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
9,612 questions
SharePoint Development
SharePoint Development
SharePoint: A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.Development: The process of researching, productizing, and refining new or existing technologies.
2,667 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. sadomovalex 3,626 Reputation points
    2021-11-15T14:41:57.453+00:00

    there is no such OTB feature. You may try to add Path parameter to KQL like that:

    Path:https://example.com/pages/foo.aspx

    But it will just limit search result to content located on specified page (not linked in that page). I.e. basically similar to Ctrl-F in browser so doesn't have a lot of sense.