In this SharePoint search
We will see how we can add a search result web part to a web part page and configure search result web part to display logged in user’s documents in SharePoint Online.
SharePoint Online tutorial contents:
Now we will see how can we add a search result web part to a web part page in SharePoint Online.
To add the “Search result” web part, click on “Add a web part” on the web part page in the edit mode. Then click on the “Search Results” web part from the “Search” categories.
Now we will see how to display all last modified documents by the logged in user. So for that edit that particular web part properties. In the “Properties for Search Result” page
Now build your Query page will open. In the Advanced mode select the “Documents(System)” from the drop down. Then switch to the “Quick Mode”.
Quick mode page in the “Query text” add “ModifiedBy:{User.Name}”. Then clicked on “Test Query”, in the “Search Result Preview” we can see all the documents which is the logged in user modefied. Clicked on OK.
When we expand the “Settings” from the “Search result properties page” we will get the below option. We can set how many item we want to display in the page. Here I have set to 10 items.
In the down of settings page, we can see “Show Pagging” option. If we enable it then the search result is coming in the pagging format. Here I have enabled it.
After the editing completed save the page. Now our web part page will look like below screenshort.
Here we will see in the search result web part, how to display the documents which are created by the logged in user or the current user.
Like the modified by the same thing can be followed here. In the “Query text”, I have added “CreatedBy:{User. Name}”. Clicked on “Test Query”. Click on Ok and save the page.
The below out put will come in the web part page.
You may like following SharePoint search tutorials:
- Content Search web part in SharePoint Online
- SharePoint Online Refinement Web Part
- SharePoint Online customize search box web part
- SharePoint search managed properties
- Difference between classic search experience and modern search experience in SharePoint Online Office 365
- Documents are not showing up in Search Results in SharePoint 2013
- How to Call SharePoint Search using REST API
- Create a result source and use custom result source in content search web part in SharePoint online Office 365
- Change Search Center URL using JavaScript in SharePoint Online
This SharePoint search result we saw how to display documents which are created and modified by logged in user or current user in a search result web part in SharePoint Online.
Hello Everyone!! I am Bhawana a SharePoint MVP and having about 10+ years of SharePoint experience as well as in .Net technologies. I have worked in all the versions of SharePoint from wss to Office 365. I have good exposure in Customization and Migration using Nintex, Metalogix tools. Now exploring more in SharePoint 2016 🙂 Hope here I can contribute and share my knowledge to the fullest. As I believe “There is no wealth like knowledge and no poverty like ignorance”